getoptv.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*====================================================================*
  2. *
  3. * getoptv.h - getopt related definitions and declarations;
  4. *
  5. * Motley Tools by Charles Maier;
  6. * Copyright 2001-2006 by Charles Maier Associates;
  7. * Licensed under the Internet Software Consortium License;
  8. *
  9. *--------------------------------------------------------------------*/
  10. #ifndef GETOPTV_HEADER
  11. #define GETOPTV_HEADER
  12. /*====================================================================*
  13. * constant definitions;
  14. *--------------------------------------------------------------------*/
  15. #define GETOPTV_VERSION 1
  16. #define GETOPTV_SUMMARY 1
  17. #define GETOPTV_C_OPTION ('-')
  18. #define GETOPTV_C_OPERAND (':')
  19. #define GETOPTV_C_ILLEGAL ('?')
  20. #define GETOPTV_C_VERSION ('!')
  21. #define GETOPTV_C_SUMMARY ('?')
  22. /*====================================================================*
  23. * variable declarations;
  24. *--------------------------------------------------------------------*/
  25. extern char * optarg;
  26. extern signed optopt;
  27. extern signed optind;
  28. extern signed opterr;
  29. extern signed optmin;
  30. /*====================================================================*
  31. * function declarations;
  32. *--------------------------------------------------------------------*/
  33. signed getoptv (int argc, char const * argv [], char const * optv []);
  34. /*====================================================================*
  35. * end definitions;
  36. *--------------------------------------------------------------------*/
  37. #endif