From 0bea2e2122bd573d1f9dc68b5a990c8f2ad3f3f0 Mon Sep 17 00:00:00 2001 From: taiyu Date: Mon, 14 Sep 2015 19:59:25 -0700 Subject: multi command keybinds --- include/stringop.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/stringop.h') 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 -- cgit v1.2.3