Commented all the entries in setup.h.
[mdsms.git] / strdup.c
1 #include "config.h"
2 #ifndef lint
3 static char rcsid[] ATTR_UNUSED = "$Id$";
4 #endif
5
6 /*
7  * $Log$
8  * Revision 1.1.1.1  1999/05/26 13:06:26  short
9  * First alpha release.
10  *
11  */
12
13 /* This part of code is a public domain */
14
15 #include <string.h>
16 #include <stdlib.h>
17
18 /* CONFORMING TO SVID 3, BSD 4.3 */
19
20 char *strdup(const char *s)
21 {
22 size_t l;
23 char *d;
24
25         if (!(d=malloc(l=strlen(s)+1))) return(NULL);
26         return memcpy(d,s,l);
27 }