libbsd/bsd_getopt.c
2008-05-06 08:50:26 +03:00

16 lines
217 B
C

#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);
}