|
|
@ -31,6 +31,11 @@ int unescape_string(char *string);
|
|
|
|
char *join_args(char **argv, int argc);
|
|
|
|
char *join_args(char **argv, int argc);
|
|
|
|
char *join_list(list_t *list, char *separator);
|
|
|
|
char *join_list(list_t *list, char *separator);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Add quotes around any argv with whitespaces.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
void add_quotes(char **argv, int argc);
|
|
|
|
|
|
|
|
|
|
|
|
// split string into 2 by delim.
|
|
|
|
// split string into 2 by delim.
|
|
|
|
char *cmdsep(char **stringp, const char *delim);
|
|
|
|
char *cmdsep(char **stringp, const char *delim);
|
|
|
|
// Split string into 2 by delim, handle quotes
|
|
|
|
// Split string into 2 by delim, handle quotes
|
|
|
|