mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-19 07:21:20 +03:00
import KernelEx-4.0-RC1
This commit is contained in:
19
kexcrt/strtok.c
Normal file
19
kexcrt/strtok.c
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
Reference in New Issue
Block a user