Define strtok_r before using it. C99 requires it.
This commit is contained in:
parent
1cc2fd1384
commit
6c387d39a4
|
@ -274,6 +274,8 @@ int strcmp(const char *s1, const char *s2)
|
||||||
return (*(unsigned char *)s1 - *(unsigned char *)--s2);
|
return (*(unsigned char *)s1 - *(unsigned char *)--s2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *strtok_r(char *s, const char *delim, char **last);
|
||||||
|
|
||||||
char *strtok(char *s, const char *delim)
|
char *strtok(char *s, const char *delim)
|
||||||
{
|
{
|
||||||
static char *last;
|
static char *last;
|
||||||
|
|
Loading…
Reference in New Issue