blob: 5b13d16ab3db41a1aa713899f8d26ce2fd3dbb21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <assert.h>
#include <unistd.h>
int opterr, optind, optopt;
char *optarg;
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/getopt.html
int getopt(int argc, char *const argv[], const char *optstring) {
(void)argc;
(void)argv;
(void)optstring;
// TODO
optind = 1;
optarg = NULL;
// assert(0);
return -1;
}
|