mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-20 14:02:43 +02:00
Move sources to src/
This commit is contained in:
15
src/bsd_getopt.c
Normal file
15
src/bsd_getopt.c
Normal file
@@ -0,0 +1,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);
|
||||
}
|
Reference in New Issue
Block a user