diff options
Diffstat (limited to 'include/stringop.h')
-rw-r--r-- | include/stringop.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stringop.h b/include/stringop.h index febbbaba..bb681bcd 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -14,6 +14,9 @@ char *strip_whitespace(char *str); | |||
14 | char *strip_comments(char *str); | 14 | char *strip_comments(char *str); |
15 | void strip_quotes(char *str); | 15 | void strip_quotes(char *str); |
16 | 16 | ||
17 | // strcmp that also handles null pointers. | ||
18 | int lenient_strcmp(char *a, char *b); | ||
19 | |||
17 | // Simply split a string with delims, free with `free_flat_list` | 20 | // Simply split a string with delims, free with `free_flat_list` |
18 | list_t *split_string(const char *str, const char *delims); | 21 | list_t *split_string(const char *str, const char *delims); |
19 | void free_flat_list(list_t *list); | 22 | void free_flat_list(list_t *list); |