diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-01-06 09:15:19 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-01-06 09:15:19 +0000 |
commit | 1a420b1fcb6a570fbe9fdad93f0084dd1503422f (patch) | |
tree | 4661f12393541cdcc28d1dca30451c94cec1e81d /libc | |
parent | da0db0ab5640256bc4217abcfc6a6e9285c27bfc (diff) |
Use public interface, not a glibc style private one
-Erik
Diffstat (limited to 'libc')
-rw-r--r-- | libc/string/strtok.c | 2 | ||||
-rw-r--r-- | libc/string/strtok_r.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libc/string/strtok.c b/libc/string/strtok.c index 9dc19a90b..dfe05d780 100644 --- a/libc/string/strtok.c +++ b/libc/string/strtok.c @@ -4,5 +4,5 @@ static char *save = 0; char *strtok(char *s, const char *delim) { - return __strtok_r(s, delim, &save); + return strtok_r(s, delim, &save); } diff --git a/libc/string/strtok_r.c b/libc/string/strtok_r.c index e6c24218a..78b3b7e37 100644 --- a/libc/string/strtok_r.c +++ b/libc/string/strtok_r.c @@ -25,7 +25,7 @@ Cambridge, MA 02139, USA. */ #include <string.h> -char *__strtok_r(char *s, const char *delim, char **save_ptr) +char *strtok_r(char *s, const char *delim, char **save_ptr) { char *token; @@ -51,5 +51,3 @@ char *__strtok_r(char *s, const char *delim, char **save_ptr) return token; } - -weak_alias(__strtok_r, strtok_r); |