1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#pragma once #ifdef __cplusplus extern "C" { #endif int getopt(int nargc, char ** nargv, char * ostr); #ifdef __cplusplus } #endif extern int opterr = 1; extern int optind = 1; extern int optopt; extern char * optarg;