mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
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:
parent
84358788aa
commit
f213180533
3 changed files with 27 additions and 17 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue