Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

41 righe
859 B

  1. /*
  2. * zzuf - general purpose fuzzer
  3. * Copyright (c) 2002, 2007 Sam Hocevar <sam@zoy.org>
  4. * All Rights Reserved
  5. *
  6. * $Id: mygetopt.h 268 2007-02-01 22:33:07Z sam $
  7. *
  8. * This program is free software. It comes without any warranty, to
  9. * the extent permitted by applicable law. You can redistribute it
  10. * and/or modify it under the terms of the Do What The Fuck You Want
  11. * To Public License, Version 2, as published by Sam Hocevar. See
  12. * http://sam.zoy.org/wtfpl/COPYING for more details.
  13. */
  14. /*
  15. * mygetopt.h: getopt_long reimplementation
  16. */
  17. #ifdef __cplusplus
  18. extern "C"
  19. {
  20. #endif
  21. struct myoption
  22. {
  23. const char *name;
  24. int has_arg;
  25. int *flag;
  26. int val;
  27. };
  28. extern int myoptind;
  29. extern char *myoptarg;
  30. int mygetopt(int, char * const[], const char *, const struct myoption *, int *);
  31. #ifdef __cplusplus
  32. }
  33. #endif