mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:31:43 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
24
sdk/lib/crt/string/strtok.c
Normal file
24
sdk/lib/crt/string/strtok.c
Normal file
|
@ -0,0 +1,24 @@
|
|||
/* Taken from Wine Staging msvcrt/string.c */
|
||||
|
||||
#include <precomp.h>
|
||||
#include <internal/wine/msvcrt.h>
|
||||
|
||||
/*********************************************************************
|
||||
* strtok (MSVCRT.@)
|
||||
*/
|
||||
char * CDECL strtok( char *str, const char *delim )
|
||||
{
|
||||
thread_data_t *data = msvcrt_get_thread_data();
|
||||
char *ret;
|
||||
|
||||
if (!str)
|
||||
if (!(str = data->strtok_next)) return NULL;
|
||||
|
||||
while (*str && strchr( delim, *str )) str++;
|
||||
if (!*str) return NULL;
|
||||
ret = str++;
|
||||
while (*str && !strchr( delim, *str )) str++;
|
||||
if (*str) *str++ = 0;
|
||||
data->strtok_next = str;
|
||||
return ret;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue