Adding debian version 4.03+dfsg-7.
[syslinux-debian/hramrach.git] / com32 / lib / strdup.c
blob766958b10f405bd505fc686c1cdbf5a0a141b1f9
1 /*
2 * strdup.c
3 */
5 #include <string.h>
6 #include <stdlib.h>
8 char *strdup(const char *s)
10 int l = strlen(s) + 1;
11 char *d = malloc(l);
13 if (d)
14 memcpy(d, s, l);
16 return d;