summaryrefslogtreecommitdiffstats
path: root/include/stringop.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stringop.h')
-rw-r--r--include/stringop.h8
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
11extern const char *whitespace; 11extern const char whitespace[];
12 12
13char *strip_whitespace(char *str); 13char *strip_whitespace(char *str);
14char *strip_comments(char *str); 14char *strip_comments(char *str);
15void 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`
17list_t *split_string(const char *str, const char *delims); 18list_t *split_string(const char *str, const char *delims);
@@ -27,5 +28,10 @@ int unescape_string(char *string);
27char *join_args(char **argv, int argc); 28char *join_args(char **argv, int argc);
28char *join_list(list_t *list, char *separator); 29char *join_list(list_t *list, char *separator);
29 30
31// split string into 2 by delim.
32char *cmdsep(char **stringp, const char *delim);
33// Split string into 2 by delim, handle quotes
34char *argsep(char **stringp, const char *delim);
35
30char *strdup(const char *); 36char *strdup(const char *);
31#endif 37#endif