summaryrefslogtreecommitdiff
path: root/libc/string/generic/strtok_r.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-14 22:57:45 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-14 22:57:45 +0000
commitf8703c6453b64fd74354a0851f6fb05795c31956 (patch)
tree252885111008043b1682496df58e46cbcd93d480 /libc/string/generic/strtok_r.c
parent032a3e76d290c776e26ae6c0a68e8b19885a68aa (diff)
Move to use attribute_hidden
Diffstat (limited to 'libc/string/generic/strtok_r.c')
-rw-r--r--libc/string/generic/strtok_r.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libc/string/generic/strtok_r.c b/libc/string/generic/strtok_r.c
index 15ca8b4ba..40d4e1a78 100644
--- a/libc/string/generic/strtok_r.c
+++ b/libc/string/generic/strtok_r.c
@@ -21,7 +21,6 @@
#include <string.h>
#undef strtok_r
-#undef __strtok_r
/* Parse S into tokens separated by characters in DELIM.
If S is NULL, the saved pointer in SAVE_PTR is used as
@@ -33,8 +32,7 @@
x = strtok_r(NULL, "=", &sp); // x = NULL
// s = "abc\0-def\0"
*/
-char *
-__strtok_r (s, delim, save_ptr)
+char attribute_hidden *__strtok_r (s, delim, save_ptr)
char *s;
const char *delim;
char **save_ptr;
@@ -66,4 +64,5 @@ __strtok_r (s, delim, save_ptr)
}
return token;
}
-weak_alias (__strtok_r, strtok_r)
+
+strong_alias(__strtok_r, strtok_r)