summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/getopt.c
blob: a026b595f530eef889a4edb37668931dfaff677d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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) {
  // TODO
  optind = 1;
  optarg = NULL;
  //  assert(0);
  return -1;
}