diff options
Diffstat (limited to 'com32/lib/strtok.c')
-rw-r--r-- | com32/lib/strtok.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/com32/lib/strtok.c b/com32/lib/strtok.c new file mode 100644 index 00000000..6e84f1df --- /dev/null +++ b/com32/lib/strtok.c @@ -0,0 +1,16 @@ +/* + * strtok.c + */ + +#include <string.h> + +char *strtok(char *s, const char *delim) +{ + static char *holder; + + if ( s ) + holder = s; + + return strsep(&holder, delim); +} + |