ReactOS  0.4.13-dev-66-gc714b7f
strtok.c File Reference
#include <precomp.h>
#include <internal/wine/msvcrt.h>
Include dependency graph for strtok.c:

Go to the source code of this file.

Functions

char *CDECL strtok (char *str, const char *delim)
 

Function Documentation

◆ strtok()

char* CDECL strtok ( char str,
const char delim 
)

Definition at line 9 of file strtok.c.

10 {
12  char *ret;
13 
14  if (!str)
15  if (!(str = data->strtok_next)) return NULL;
16 
17  while (*str && strchr( delim, *str )) str++;
18  if (!*str) return NULL;
19  ret = str++;
20  while (*str && !strchr( delim, *str )) str++;
21  if (*str) *str++ = 0;
22  data->strtok_next = str;
23  return ret;
24 }
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
int ret
thread_data_t * msvcrt_get_thread_data(void)
Definition: tls.c:31
char * strchr(const char *String, int ch)
Definition: utclib.c:501

Referenced by DefaultBookmarkName(), FTP_ParseNextFile(), FTPDecodeURL(), FTPExamineMlstFeatures(), get_subtests(), GetOurHostName(), GetPortNumber(), gluCheckExtension(), HasSeenOneTimeMessage(), CStringTest::import_checks(), InitDeviceList(), ipv4addrs(), TMapLoader::Load(), TMapLoader::LoadCharMap(), TMapLoader::LoadGlobal(), main(), MayUseFirewall(), TMapLoader::ParseKeyDef(), ProcessFirewallPrefFile(), ProcessPrefsFile(), SetDomainAndUsername(), setup_dinput_options(), test__mbstok(), test_strtok(), TRIO_ARGS2(), WinMain(), and wpp_add_include_path().