diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-27 15:30:37 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-27 15:30:37 -0300 |
commit | e6e2b766afa7d92ef38b356a745a47b2047bba07 (patch) | |
tree | 53a8b520a074f90621dc83f2ac4f3c1af90945cf /misc.c | |
parent | 2f6194a3e83d8f8b7ea3b38ccf37028592ea5710 (diff) |
misc: Add `\r`, and `\n` to the list of whitespace that
`skip_whitespace()` can skip past.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -161,7 +161,7 @@ char *skip_whitespace(const char *str) { if (is_empty(str)) { return NULL; } else { - const size_t span = strspn(str, " \t\v"); + const size_t span = strspn(str, " \t\v\r\n"); return (char *)&str[span]; } } |