ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/inifile_reader.c
(Generate patch)

Comparing Daodan/src/inifile_reader.c (file contents):
Revision 451 by rossy, Sun Jul 26 12:04:44 2009 UTC vs.
Revision 466 by rossy, Sat Oct 17 11:49:49 2009 UTC

# 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++;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)