alg fixed
This commit is contained in:
parent
0c3db919a2
commit
3a9144c498
Binary file not shown.
|
@ -102,7 +102,7 @@ int alg(char *ptr) {
|
||||||
p[pos].ptr = token;
|
p[pos].ptr = token;
|
||||||
p[pos].len = strlen(token);
|
p[pos].len = strlen(token);
|
||||||
++pos;
|
++pos;
|
||||||
token = simple_strtok((char *)NULL, delims);
|
token = simple_strtok((char *)NULL, delims); // Set ptr to NULL after the first call to continue tokenizing the same string
|
||||||
}
|
}
|
||||||
|
|
||||||
return pos;
|
return pos;
|
||||||
|
|
Loading…
Reference in New Issue