tesseract
4.00.00dev
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
◆
strtok_r()
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
}
vs2010
port
strtok_r.h
Generated on Sat May 20 2017 21:29:02 for tesseract by
1.8.13