projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix i386 __set_thread_area fallback
[musl]
/
src
/
string
/
strdup.c
diff --git
a/src/string/strdup.c
b/src/string/strdup.c
index
dd5f80c
..
d4c2744
100644
(file)
--- 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);