mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 19:27:42 +01:00
16 lines
217 B
C
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);
|
|
}
|