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, 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 6void strip_whitespace(char *str);
7extern const char whitespace[];
8
9char *strip_whitespace(char *str);
10char *strip_comments(char *str); 7char *strip_comments(char *str);
11void strip_quotes(char *str); 8void 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.
18int lenient_strcmp(char *a, char *b); 15int 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`
21list_t *split_string(const char *str, const char *delims); 18list_t *split_string(const char *str, const char *delims);
22void free_flat_list(list_t *list);
23 19
24// Splits an argument string, keeping quotes intact 20// Splits an argument string, keeping quotes intact
25char **split_args(const char *str, int *argc); 21char **split_args(const char *str, int *argc);