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.
 
 
 

29 lines
587 B

  1. /*
  2. * Copyright (c) 2003-2007 Jim Paris <jim@jtan.com>
  3. *
  4. * This is free software; you can redistribute it and/or modify it and
  5. * it is provided under the terms of version 2 of the GNU General Public
  6. * License as published by the Free Software Foundation; see COPYING.
  7. */
  8. #ifndef OPT_H
  9. #define OPT_H
  10. #include <stdlib.h>
  11. struct options {
  12. char shortopt;
  13. char *longopt;
  14. char *arg;
  15. char *help;
  16. };
  17. void opt_init(int *optind);
  18. char opt_parse(int argc, char **argv, int *optind, char **optarg,
  19. struct options *opt);
  20. void opt_help(struct options *opt, FILE * out);
  21. #endif