diff options
Diffstat (limited to 'include/stringop.h')
-rw-r--r-- | include/stringop.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/stringop.h b/include/stringop.h index 919e605c..f7ca60a5 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -3,10 +3,7 @@ | |||
3 | 3 | ||
4 | #include "list.h" | 4 | #include "list.h" |
5 | 5 | ||
6 | // array of whitespace characters to use for delims | 6 | void strip_whitespace(char *str); |
7 | extern const char whitespace[]; | ||
8 | |||
9 | char *strip_whitespace(char *str); | ||
10 | char *strip_comments(char *str); | 7 | char *strip_comments(char *str); |
11 | void strip_quotes(char *str); | 8 | void strip_quotes(char *str); |
12 | 9 | ||
@@ -17,9 +14,8 @@ char *lenient_strncat(char *dest, const char *src, size_t len); | |||
17 | // strcmp that also handles null pointers. | 14 | // strcmp that also handles null pointers. |
18 | int lenient_strcmp(char *a, char *b); | 15 | int lenient_strcmp(char *a, char *b); |
19 | 16 | ||
20 | // Simply split a string with delims, free with `free_flat_list` | 17 | // Simply split a string with delims, free with `list_free_items_and_destroy` |
21 | list_t *split_string(const char *str, const char *delims); | 18 | list_t *split_string(const char *str, const char *delims); |
22 | void free_flat_list(list_t *list); | ||
23 | 19 | ||
24 | // Splits an argument string, keeping quotes intact | 20 | // Splits an argument string, keeping quotes intact |
25 | char **split_args(const char *str, int *argc); | 21 | char **split_args(const char *str, int *argc); |