getopt.h 374 B

1234567891011121314151617181920212223242526
  1. #ifndef GETOPT_H
  2. #define GETOPT_H
  3. #ifndef _WIN32
  4. #include <unistd.h>
  5. #else /* _WIN32 */
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif /* __cplusplus */
  9. extern char *optarg;
  10. extern int optind, opterr, optopt, optreset;
  11. int getopt(int nargc, char * const nargv[], const char *ostr);
  12. #ifdef __cplusplus
  13. }
  14. #endif /* __cplusplus */
  15. #endif /* !_WIN32 */
  16. #endif /* !GETOPT_H */