diff options
Diffstat (limited to 'include/stringop.h')
-rw-r--r-- | include/stringop.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/stringop.h b/include/stringop.h index f9f3130c..49bfa771 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -8,10 +8,11 @@ extern int setenv(const char *, const char *, int); | |||
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | // array of whitespace characters to use for delims | 10 | // array of whitespace characters to use for delims |
11 | extern const char *whitespace; | 11 | extern const char whitespace[]; |
12 | 12 | ||
13 | char *strip_whitespace(char *str); | 13 | char *strip_whitespace(char *str); |
14 | char *strip_comments(char *str); | 14 | char *strip_comments(char *str); |
15 | void strip_quotes(char *str); | ||
15 | 16 | ||
16 | // Simply split a string with delims, free with `free_flat_list` | 17 | // Simply split a string with delims, free with `free_flat_list` |
17 | list_t *split_string(const char *str, const char *delims); | 18 | list_t *split_string(const char *str, const char *delims); |
@@ -27,5 +28,10 @@ int unescape_string(char *string); | |||
27 | char *join_args(char **argv, int argc); | 28 | char *join_args(char **argv, int argc); |
28 | char *join_list(list_t *list, char *separator); | 29 | char *join_list(list_t *list, char *separator); |
29 | 30 | ||
31 | // split string into 2 by delim. | ||
32 | char *cmdsep(char **stringp, const char *delim); | ||
33 | // Split string into 2 by delim, handle quotes | ||
34 | char *argsep(char **stringp, const char *delim); | ||
35 | |||
30 | char *strdup(const char *); | 36 | char *strdup(const char *); |
31 | #endif | 37 | #endif |