update
This commit is contained in:
parent
809f1e4004
commit
8190fc9684
|
@ -117,11 +117,13 @@ int alg (char * ptr) {
|
|||
|
||||
int pos = 0;
|
||||
|
||||
while (char *token = simple_strtok(ptr+strlen(ptr), delims)) {
|
||||
while (char *token = simple_strtok(ptr, delims)) {
|
||||
|
||||
p[pos].ptr = token;
|
||||
//p[pos].len = strlen(token);
|
||||
p[pos].len = pos;
|
||||
|
||||
token = token + strlen(token) + 1;
|
||||
++pos;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue