You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
337 B

#ifndef _OPTARG_H_
#define _OPTARG_H_
#include <getopt.h>
int optarg_register(const struct option *opts, int count,
int (* parser_cb)(int val, const char *arg, void *privdata),
void *privdata);
void optarg_free(void);
int optarg_parse(int argc, char * const argv[]);
#endif /* _OPTARG_H_ */