options.h 581 B

1234567891011121314151617181920
  1. /* This file is part of the software similarity tester SIM.
  2. Written by Dick Grune, Vrije Universiteit, Amsterdam.
  3. $Id: options.h,v 1.3 2001/11/13 12:55:53 dick Exp $
  4. */
  5. /* Setting and consulting command line options
  6. */
  7. struct option {
  8. char op_char; /* char as in call */
  9. char *op_text; /* elucidating text */
  10. char op_indicator; /* type indicator, N = int, F = file name */
  11. const char **op_stringp;/* string value to be picked up */
  12. };
  13. extern int option_set(char ch);
  14. extern int do_options(
  15. const char *progname, const struct option *optlist,
  16. int argc, char *argv[]
  17. );