Trims extra spaces in the configuration file.

This commit is contained in:
Andrea Mazzoleni 2011-06-21 21:18:06 +02:00
parent 2aa36a5df5
commit 09b8a3cd7c
4 changed files with 36 additions and 10 deletions

4
util.c
View file

@ -55,7 +55,7 @@ int strgets(char* s, unsigned size, FILE* f)
return -1;
}
if (i == s)
return 0;
return 0; /* return EOF only if nothing was read */
}
/* remove ending carrige return to support the Windows CR+LF format */
@ -64,7 +64,7 @@ int strgets(char* s, unsigned size, FILE* f)
*i = 0;
return 1;
return i - s;
}
int stru32(const char* s, uint32_t* value)