Parent Directory | Revision Log | 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); |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |