This commit is contained in:
mpabi 2024-05-25 08:38:43 +00:00
parent 809f1e4004
commit 8190fc9684
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}