alg fixed

This commit is contained in:
borysr 2024-05-25 18:05:23 +02:00
parent 0c3db919a2
commit 3a9144c498
2 changed files with 1 additions and 1 deletions

BIN
cpp/._rvmain.cpp.swp Normal file

Binary file not shown.

View File

@ -102,7 +102,7 @@ int alg(char *ptr) {
p[pos].ptr = token;
p[pos].len = strlen(token);
++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;