Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Functions
strtok_r.h File Reference
Go to the source code of this file.
Functions
char *
strtok_r
(char *s1, const char *s2, char **lasts)
Function Documentation
char* strtok_r
(
char *
s1
,
const char *
s2
,
char **
lasts
)
Definition at line
38
of file
strtok_r.cpp
.
38
{
39
char
*ret;
40
41
if
(s1 ==
NULL
)
42
s1 = *lasts;
43
while
(*s1 && strchr(s2, *s1))
44
++s1;
45
if
(*s1 ==
'\0'
)
46
return
NULL
;
47
ret = s1;
48
while
(*s1 && !strchr(s2, *s1))
49
++s1;
50
if
(*s1)
51
*s1++ =
'\0'
;
52
*lasts = s1;
53
return
ret;
54
}
NULL
#define NULL
Definition:
host.h:144
vs2010
port
strtok_r.h
Generated on Mon Jul 20 2015 18:38:04 by
1.8.8