getopt.h 367 B

1234567891011121314151617
  1. #ifndef _LINUX_GETOPT_H
  2. #define _LINUX_GETOPT_H
  3. #define OPT_NOPARAM 1
  4. #define OPT_INT 2
  5. #define OPT_STRING 4
  6. struct ncp_option {
  7. const char *name;
  8. unsigned int has_arg;
  9. int val;
  10. };
  11. extern int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts,
  12. char **optopt, char **optarg, unsigned long *value);
  13. #endif /* _LINUX_GETOPT_H */