summaryrefslogtreecommitdiff
path: root/rpmio/argv.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-04-18 12:36:02 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-04-18 14:59:03 +0300
commit2c0f7b54ad8e820ec357c2cad08b8d31fa601ead (patch)
treea9a3d4a4644d8346291bedcdbe39cd69cf3bc445 /rpmio/argv.h
parent8058de50b24f548df74df0943cb3a29c77fbde61 (diff)
downloadrpm-2c0f7b54ad8e820ec357c2cad08b8d31fa601ead.tar.gz
rpm-2c0f7b54ad8e820ec357c2cad08b8d31fa601ead.tar.bz2
rpm-2c0f7b54ad8e820ec357c2cad08b8d31fa601ead.zip
Add argvJoin() for combining an argv array into a string
Diffstat (limited to 'rpmio/argv.h')
-rw-r--r--rpmio/argv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/rpmio/argv.h b/rpmio/argv.h
index 043275236..6a6fc7f14 100644
--- a/rpmio/argv.h
+++ b/rpmio/argv.h
@@ -147,6 +147,14 @@ int argvAppend(ARGV_t * argvp, ARGV_const_t av);
*/
int argvSplit(ARGV_t * argvp, const char * str, const char * seps);
+/** \ingroup rpmargv
+ * Join an argv array into a string.
+ * @param *argv argv array to join
+ * @param sep seperator string to use
+ * @return malloc'ed string
+ */
+char *argvJoin(ARGV_const_t argv, const char *sep);
+
#ifdef __cplusplus
}
#endif