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.

16 lines
337 B

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