wcstok.c

The libc implementation

Author

Marcel Sondaar

License

Public Domain

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

Functions

wcstok

wchar_t * wcstok(wchar_t * _PDCLIB_restrict s1,
const wchar_t * _PDCLIB_restrict s2,
wchar_t ** _PDCLIB_restrict ptr)

Split s1 on each and any character in s2 Supply NULL to continue searching the previous string. ptr must point to a user-provided wchar_t pointer which must be kept the same across calls.

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

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