/[monit]/monit/xmalloc.c
ViewVC logotype

Diff of /monit/xmalloc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by hauk, Thu Aug 29 22:51:45 2002 UTC revision 1.5 by hauk, Sat Dec 21 13:56:04 2002 UTC
# Line 98  void *xcalloc(long count, long nbytes) { Line 98  void *xcalloc(long count, long nbytes) {
98  char *xstrdup(const char *s) {  char *xstrdup(const char *s) {
99        
100    char *p;    char *p;
101    
102      ASSERT(s);
103        
104    p= (char *)xmalloc(strlen(s)+1);    p= (char *)xmalloc(strlen(s)+1);
105    strcpy(p, s);    strcpy(p, s);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26