aboutsummaryrefslogtreecommitdiff
path: root/include/stringop.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stringop.h')
-rw-r--r--include/stringop.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stringop.h b/include/stringop.h
index dde50f13..dc81cdae 100644
--- a/include/stringop.h
+++ b/include/stringop.h
@@ -7,6 +7,7 @@ extern const char *whitespace;
char *strip_whitespace(char *str);
char *strip_comments(char *str);
+void strip_quotes(char *str);
// Simply split a string with delims, free with `free_flat_list`
list_t *split_string(const char *str, const char *delims);
@@ -22,5 +23,10 @@ int unescape_string(char *string);
char *join_args(char **argv, int argc);
char *join_list(list_t *list, char *separator);
+// split string into 2 by delim.
+char *cmdsep(char **stringp, const char *delim);
+// Split string into 2 by delim, handle quotes
+char *argsep(char **stringp, const char *delim);
+
char *strdup(const char *);
#endif