summaryrefslogtreecommitdiff
path: root/bsd_getopt.c
blob: 8245fc8f8639b29686630ae93b670dfff6fd61b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <bsd/getopt.h>

int optreset = 0;

int
bsd_getopt (int argc, char **argv, char *shortopts)
{
  if (optreset == 1)
    {
      optreset = 0;
      optind = 0;
    }

  return getopt (argc, argv, shortopts);
}