diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-04-14 16:21:40 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-04-14 16:21:40 +0300 |
commit | 900cbb7d79a18fdf48964c395e038eabc38db43e (patch) | |
tree | 93cc6589fbf43c78341a587820236cd9096a59e8 /rpmio/argv.h | |
parent | d858e4ffa5937aed5bbccf0d4667e1eebd55c218 (diff) | |
download | rpm-900cbb7d79a18fdf48964c395e038eabc38db43e.tar.gz rpm-900cbb7d79a18fdf48964c395e038eabc38db43e.tar.bz2 rpm-900cbb7d79a18fdf48964c395e038eabc38db43e.zip |
Add argvAddNum() for adding integers to ARGV_t arrays
Diffstat (limited to 'rpmio/argv.h')
-rw-r--r-- | rpmio/argv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpmio/argv.h b/rpmio/argv.h index 6d5dc1f1a..043275236 100644 --- a/rpmio/argv.h +++ b/rpmio/argv.h @@ -123,6 +123,14 @@ int argiAdd(ARGI_t * argip, int ix, int val); int argvAdd(ARGV_t * argvp, const char *val); /** \ingroup rpmargv + * Add a number to an argv array (converting to a string). + * @retval *argvp argv array + * @param val numeric arg to append + * @return 0 always + */ +int argvAddNum(ARGV_t * argvp, int val); + +/** \ingroup rpmargv * Append one argv array to another. * @retval *argvp argv array * @param av argv array to append |