summaryrefslogtreecommitdiff
path: root/lib/src/split_argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/split_argv.c')
-rw-r--r--lib/src/split_argv.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/src/split_argv.c b/lib/src/split_argv.c
index b95720d..5930e2d 100644
--- a/lib/src/split_argv.c
+++ b/lib/src/split_argv.c
@@ -80,25 +80,3 @@ fail_str:
errno = EINVAL;
return -1;
}
-
-char **split_argv(char *str)
-{
- char **argv = NULL;
- int i, count;
-
- count = pack_argv(str);
- if (count <= 0)
- return NULL;
-
- argv = malloc(sizeof(argv[0]) * (count + 1));
- if (argv == NULL)
- return NULL;
-
- for (i = 0; i < count; ++i) {
- argv[i] = str;
- str += strlen(str) + 1;
- }
-
- argv[i] = NULL;
- return argv;
-}