diff options
Diffstat (limited to 'klibc/klibc/strdup.c')
-rw-r--r-- | klibc/klibc/strdup.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/klibc/klibc/strdup.c b/klibc/klibc/strdup.c deleted file mode 100644 index eb170c2645..0000000000 --- a/klibc/klibc/strdup.c +++ /dev/null @@ -1,17 +0,0 @@ -/* - * strdup.c - */ - -#include <string.h> -#include <stdlib.h> - -char *strdup(const char *s) -{ - int l = strlen(s)+1; - char *d = malloc(l); - - if ( d ) - memcpy(d, s, l); - - return d; -} |