mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-18 23:11:19 +03:00
20 lines
230 B
C
Executable File
20 lines
230 B
C
Executable File
/*
|
|
* strtok.c
|
|
*/
|
|
|
|
char *strsep(char **stringp, const char *delim);
|
|
|
|
char *strtok(char *s, const char *delim)
|
|
{
|
|
static char *holder;
|
|
|
|
if (s)
|
|
holder = s;
|
|
|
|
do {
|
|
s = strsep(&holder, delim);
|
|
} while (s && !*s);
|
|
|
|
return s;
|
|
}
|