diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-28 05:14:10 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-28 05:14:10 +0100 |
commit | 7143b286b7b57eed2b49ba143dcae90be3716b0e (patch) | |
tree | 51d097b34895fd2e86dd76e37a78792aadf49638 /sys/src/ape/lib/bsd/strdup.c | |
parent | 4aa68d2f3a10b81fecc27550c9e1bb05b7b74887 (diff) |
ape: move strdup() from libbsd to libap (from sources)
including <string.h> should be enougth to make strdup()
available.
Diffstat (limited to 'sys/src/ape/lib/bsd/strdup.c')
-rw-r--r-- | sys/src/ape/lib/bsd/strdup.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/src/ape/lib/bsd/strdup.c b/sys/src/ape/lib/bsd/strdup.c deleted file mode 100644 index 5e4a3759e..000000000 --- a/sys/src/ape/lib/bsd/strdup.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <string.h> -#include <ctype.h> -#include <stdlib.h> - -char* -strdup(char *p) -{ - int n; - char *np; - - n = strlen(p)+1; - np = malloc(n); - if(np) - memmove(np, p, n); - return np; -} |