diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-11 14:02:58 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:35 -0400 |
commit | 3fe595de83e398dbc3cdbe303cacaf8485c9ae08 (patch) | |
tree | e9c870791bf714111804adc815f50f3b0c395102 /src/string/strdup.c | |
parent | 49722a8ed4c8fd056ac8aebd6bec9d998b700f80 (diff) | |
download | musl-3fe595de83e398dbc3cdbe303cacaf8485c9ae08.zip musl-3fe595de83e398dbc3cdbe303cacaf8485c9ae08.tar.gz musl-3fe595de83e398dbc3cdbe303cacaf8485c9ae08.tar.bz2 |
remove or make static various unused __-prefixed symbols
Diffstat (limited to 'src/string/strdup.c')
-rw-r--r-- | src/string/strdup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/string/strdup.c b/src/string/strdup.c index dd5f80c..d4c2744 100644 --- a/src/string/strdup.c +++ b/src/string/strdup.c @@ -1,13 +1,10 @@ #include <stdlib.h> #include <string.h> -#include "libc.h" -char *__strdup(const char *s) +char *strdup(const char *s) { size_t l = strlen(s); char *d = malloc(l+1); if (!d) return NULL; return memcpy(d, s, l+1); } - -weak_alias(__strdup, strdup); |