strip_whitespace(): Improve and simplify (#1034)

Now strip_whitespace() also strips the unnecessary whitespace between
words in the string. That fixes issues reading the configuration file if
too much space is included between tokens.
This commit is contained in:
Michael Schupikov 2017-01-08 20:30:16 +01:00
parent 84358788aa
commit f213180533
3 changed files with 27 additions and 17 deletions

View file

@ -10,7 +10,7 @@ extern int setenv(const char *, const char *, int);
// array of whitespace characters to use for delims
extern const char whitespace[];
char *strip_whitespace(char *str);
void strip_whitespace(char *str);
char *strip_comments(char *str);
void strip_quotes(char *str);