diff options
author | Paul Tan <pyokagan@gmail.com> | 2015-06-14 16:41:50 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-15 12:40:49 -0700 |
commit | 85b343245b495a47f937007e1c0650f2070b9b4f (patch) | |
tree | af7600866200705159dcffec6f35b3ae99c43cf5 /argv-array.h | |
parent | parse-options-cb: implement parse_opt_passthru_argv() (diff) | |
download | tgif-85b343245b495a47f937007e1c0650f2070b9b4f.tar.xz |
argv-array: implement argv_array_pushv()
When we have a null-terminated array, it would be useful to convert it
or append it to an argv_array for further manipulation.
Implement argv_array_pushv() which will push a null-terminated array of
strings on to an argv_array.
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'argv-array.h')
-rw-r--r-- | argv-array.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/argv-array.h b/argv-array.h index c65e6e825a..a2fa0aa606 100644 --- a/argv-array.h +++ b/argv-array.h @@ -17,6 +17,7 @@ __attribute__((format (printf,2,3))) void argv_array_pushf(struct argv_array *, const char *fmt, ...); LAST_ARG_MUST_BE_NULL void argv_array_pushl(struct argv_array *, ...); +void argv_array_pushv(struct argv_array *, const char **); void argv_array_pop(struct argv_array *); void argv_array_clear(struct argv_array *); |