Go to the documentation of this file.
11 #include <rpm/rpmtypes.h>
91 int argvCmp(
const void * a,
const void * b);
109 int (*compar)(
const void *,
const void *));
ARGI_t argiFree(ARGI_t argi)
Destroy an argi array.
int argvCount(ARGV_const_t argv)
Return no.
char *const * ARGV_const_t
int argvSort(ARGV_t argv, int(*compar)(const void *, const void *))
Sort an argv array.
int argvAdd(ARGV_t *argvp, const char *val)
Add a string to an argv array.
int argvCmp(const void *a, const void *b)
Compare argv arrays (qsort/bsearch).
int argvAddNum(ARGV_t *argvp, int val)
Add a number to an argv array (converting to a string).
ARGV_t argvNew(void)
Create an empty argv array.
ARGV_t argvFree(ARGV_t argv)
Destroy an argv array.
ARGV_t argvSplitString(const char *str, const char *seps, argvFlags flags)
Split a string into an argv array.
int argiAdd(ARGI_t *argip, int ix, int val)
Add an int to an argi array.
ARGV_t argvData(ARGV_t argv)
Return data from argv array.
char * argvJoin(ARGV_const_t argv, const char *sep)
Join an argv array into a string.
ARGint_t argiData(ARGI_const_t argi)
Return data from argi array.
int argiCount(ARGI_const_t argi)
Return no.
struct ARGI_s const *const ARGI_const_t
void argvPrint(const char *msg, ARGV_const_t argv, FILE *fp)
Print argv array elements.
ARGV_t argvSearch(ARGV_const_t argv, const char *val, int(*compar)(const void *, const void *))
Find an element in an argv array.
int argvSplit(ARGV_t *argvp, const char *str, const char *seps)
Split a string into an argv array.
int argvAppend(ARGV_t *argvp, ARGV_const_t av)
Append one argv array to another.