alg fixed

This commit is contained in:
borysr 2024-05-25 17:59:44 +02:00
parent f8380b5835
commit 0c3db919a2
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -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); // Set ptr to NULL after the first call to continue tokenizing the same string token = simple_strtok((char *)NULL, delims);
} }
return pos; return pos;