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.
 
 
 

30 lines
588 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. {
  13. char shortopt;
  14. char *longopt;
  15. char *arg;
  16. char *help;
  17. };
  18. void opt_init (int *optind);
  19. char opt_parse (int argc, char **argv, int *optind, char **optarg,
  20. struct options *opt);
  21. void opt_help (struct options *opt, FILE * out);
  22. #endif