argv.h
Go to the documentation of this file.
#ifndef _H_ARGV_
#define _H_ARGV_
typedef const char * ARGstr_t;
typedef ARGstr_t * ARGV_t;
typedef unsigned int * ARGint_t;
struct ARGI_s {
unsigned nvals;
ARGint_t vals;
};
typedef struct ARGI_s * ARGI_t;
#ifdef __cplusplus
extern "C" {
#endif
void argvPrint(/*@null@*/ const char * msg, /*@null@*/ ARGV_t argv,
/*@null@*/ FILE * fp)
/*@globals fileSystem @*/
/*@modifies *fp, fileSystem @*/;
/*@null@*/
ARGI_t argiFree(/*@only@*/ /*@null@*/ ARGI_t argi)
/*@modifies argi @*/;
/*@null@*/
ARGV_t argvFree(/*@only@*/ /*@null@*/ ARGV_t argv)
/*@modifies argv @*/;
int argiCount(/*@null@*/ const ARGI_t argi)
/*@*/;
/*@null@*/
ARGint_t argiData(/*@null@*/ ARGI_t argi)
/*@*/;
int argvCount(/*@null@*/ const ARGV_t argv)
/*@*/;
/*@null@*/
ARGV_t argvData(/*@null@*/ ARGV_t argv)
/*@*/;
/*@-exportlocal@*/
int argiCmp(const void * a, const void * b)
/*@*/;
/*@=exportlocal@*/
/*@-exportlocal@*/
int argvCmp(const void * a, const void * b)
/*@*/;
/*@=exportlocal@*/
int argvStrcasecmp(const void * a, const void * b)
/*@*/;
#if defined(RPM_VENDOR_OPENPKG) /* wildcard-matching-arbitrary-tagnames */
int argvFnmatch(const void * a, const void * b)
/*@*/;
int argvFnmatchCasefold(const void * a, const void * b)
/*@*/;
#endif
int argiSort(ARGI_t argi, int (*compar)(const void *, const void *))
/*@*/;
int argvSort(ARGV_t argv, int (*compar)(const void *, const void *))
/*@modifies *argv @*/;
/*@dependent@*/ /*@null@*/
ARGV_t argvSearch(ARGV_t argv, ARGstr_t val,
int (*compar)(const void *, const void *))
/*@*/;
#if defined(RPM_VENDOR_OPENPKG) /* wildcard-matching-arbitrary-tagnames */
/*@dependent@*/ /*@null@*/
ARGV_t argvSearchLinear(ARGV_t argv, ARGstr_t val,
int (*compar)(const void *, const void *))
/*@*/;
#endif
int argiAdd(/*@out@*/ ARGI_t * argip, int ix, int val)
/*@modifies *argip @*/;
int argvAdd(/*@out@*/ ARGV_t * argvp, ARGstr_t val)
/*@modifies *argvp @*/;
int argvAppend(/*@out@*/ ARGV_t * argvp, /*@null@*/ ARGV_t av)
/*@modifies *argvp @*/;
int argvSplit(ARGV_t * argvp, const char * str, /*@null@*/ const char * seps)
/*@modifies *argvp @*/;
/*@only@*/
char * argvJoin(ARGV_t argv)
/*@*/;
int argvFgets(ARGV_t * argvp, void * fd)
/*@globals fileSystem@*/
/*@modifies *argvp, fd, fileSystem @*/;
#ifdef __cplusplus
}
#endif
#endif /* _H_ARGV_ */