5 /* strtok( char *, const char * )
7 This file is part of the Public Domain C Library (PDCLib).
8 Permission is granted to use, modify, and / or redistribute at will.
13 char * strtok( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 )
15 static char * tmp = NULL;
26 /* old string continued */
29 /* No old string, no new string, nothing to do */
35 /* skipping leading s2 characters */
40 /* found seperator; skip and start over */
50 /* no more to parse */
51 return ( tmp = NULL );
54 /* skipping non-s2 characters */
63 /* found seperator; overwrite with '\0', position tmp, return */
71 /* parsed to end of string */
72 return ( tmp = NULL );
75 #warning Test driver missing.