11 #include <rpm/rpmtypes.h> 34 void argvPrint(
const char * msg, ARGV_const_t argv, FILE * fp);
69 ARGint_t
argiData(ARGI_const_t argi);
91 int argvCmp(
const void * a,
const void * b);
99 int argvSort(ARGV_t argv,
int (*compar)(
const void *,
const void *));
108 ARGV_t
argvSearch(ARGV_const_t argv,
const char *val,
109 int (*compar)(
const void *,
const void *));
118 int argiAdd(ARGI_t * argip,
int ix,
int val);
126 int argvAdd(ARGV_t * argvp,
const char *val);
142 int argvAppend(ARGV_t * argvp, ARGV_const_t av);
158 ARGV_t
argvSplitString(
const char * str,
const char * seps, argvFlags flags);
167 int argvSplit(ARGV_t * argvp,
const char * str,
const char * seps);
175 char *
argvJoin(ARGV_const_t argv,
const char *sep);
ARGI_t argiFree(ARGI_t argi)
Destroy an argi array.
int argvSort(ARGV_t argv, int(*compar)(const void *, const void *))
Sort an argv array.
int argvCount(ARGV_const_t argv)
Return no.
struct ARGI_s const *const ARGI_const_t
ARGV_t argvFree(ARGV_t argv)
Destroy 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).
ARGV_t argvNew(void)
Create an empty argv array.
int argvAddNum(ARGV_t *argvp, int val)
Add a number to an argv array (converting to a string).
ARGV_t argvSplitString(const char *str, const char *seps, argvFlags flags)
Split a string into an argv array.
ARGint_t argiData(ARGI_const_t argi)
Return data from argi array.
char *const * ARGV_const_t
int argiCount(ARGI_const_t argi)
Return no.
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.
ARGV_t argvSearch(ARGV_const_t argv, const char *val, int(*compar)(const void *, const void *))
Find an element in an argv array.
int argvAppend(ARGV_t *argvp, ARGV_const_t av)
Append one argv array to another.
void argvPrint(const char *msg, ARGV_const_t argv, FILE *fp)
Print argv array elements.
int argvSplit(ARGV_t *argvp, const char *str, const char *seps)
Split a string into an argv array.
char * argvJoin(ARGV_const_t argv, const char *sep)
Join an argv array into a string.