strtok.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
strtok.cThe libc implementation
Functions
strtokSplit s1 on each and any character in s2 Supply NULL to continue searching the previous string.

Functions

strtok

char * strtok(char * _PDCLIB_restrict s1,
const char * _PDCLIB_restrict s2)

Split s1 on each and any character in s2 Supply NULL to continue searching the previous string.

Returns a pointer to the next null terminated string which was separated by characters occurring in s2

Returns NULL if there are no more tokens

char * strtok(char * _PDCLIB_restrict s1,
const char * _PDCLIB_restrict s2)
Split s1 on each and any character in s2 Supply NULL to continue searching the previous string.