# | Line 10 | Line 10 | char* inifile_cleanstr(char* str) | |
---|---|---|
10 | { | |
11 | int i; | |
12 | for (i = strlen(str) - 1; i >= 0; i --) | |
13 | < | if (!isspace(str[i])) |
14 | < | { |
15 | < | str[i + 1] = '\0'; |
13 | > | if (isspace(str[i])) |
14 | > | str[i] = '\0'; |
15 | > | else |
16 | break; | |
17 | – | } |
17 | ||
18 | while (isspace(*str)) | |
19 | str++; |
– | Removed lines |
+ | Added lines |
< | Changed lines (old) |
> | Changed lines (new) |