diff options
Diffstat (limited to 'usr/klibc/strtok.c')
-rw-r--r-- | usr/klibc/strtok.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/klibc/strtok.c b/usr/klibc/strtok.c new file mode 100644 index 0000000..6b169a1 --- /dev/null +++ b/usr/klibc/strtok.c @@ -0,0 +1,12 @@ +/* + * strtok.c + */ + +#include <string.h> + +char *strtok(char *s, const char *delim) +{ + static char *holder; + + return strtok_r(s, delim, &holder); +} |