projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug #36 (strtok does not return last token if string does not end with delimiter...
[fw/pdclib]
/
functions
/
string
/
strtok.c
diff --git
a/functions/string/strtok.c
b/functions/string/strtok.c
index 691c640cac060bf4cbc16ed79adc660ff21bde2b..b922085ce38ac19ed423bfc29d97ce95d636e3eb 100644
(file)
--- a/
functions/string/strtok.c
+++ b/
functions/string/strtok.c
@@
-68,7
+68,8
@@
char * strtok( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 )
}
/* parsed to end of string */
- return ( tmp = NULL );
+ tmp = NULL;
+ return s1;
}
#endif