From 6642b2b2bf3d16e0632989c1e29c672882e0d283 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 11 Apr 2018 19:45:26 +0200 Subject: Don't pre-allocate argument vector for command lines Signed-off-by: David Oberhollenzer --- lib/include/util.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/include/util.h') diff --git a/lib/include/util.h b/lib/include/util.h index d824b22..d6b68f1 100644 --- a/lib/include/util.h +++ b/lib/include/util.h @@ -112,18 +112,6 @@ int unescape(char *src); */ int pack_argv(char *str); -/* - Split a space seperated string into a sequence of null-terminated - strings. Return a NULL terminated array of strings pointing to the - start of each sub string. - - It basically runs pack_argv on 'str' and then constructs the argv - vector from that, with each entry pointing into 'str'. - - The returned array must be freed with free(). -*/ -char **split_argv(char *str); - /* Search through an array of enum_map_t entries to resolve a string to a numeric value. The end of the map is indicated by a sentinel entry -- cgit v1.2.3