getopt.c 235 B

1234567891011
  1. #include <unistd.h>
  2. #include <getopt.h>
  3. char * optarg = NULL;
  4. int optind = 1;
  5. int opterr = 1;
  6. int optopt = 0;
  7. int getopt(int argc, char * const argv[], const char * optstring) {
  8. return getopt_long(argc, argv, optstring, NULL, 0);
  9. }