toaruos/libc/unistd/getopt.c

12 lines
235 B
C
Raw Normal View History

2018-05-02 12:58:47 +03:00
#include <unistd.h>
#include <getopt.h>
char * optarg = NULL;
int optind = 1;
int opterr = 1;
int optopt = 0;
int getopt(int argc, char * const argv[], const char * optstring) {
return getopt_long(argc, argv, optstring, NULL, 0);
}