2 @section @file{getopt.h}
4 Defines the type @code{struct option} and declares the variables
5 @code{optarg}, @code{optind}, @code{opterr}, @code{optopt}
6 and the functions @code{getopt}, @code{getopt_long}, @code{getopt_long_only}.
12 @ref{Getopt,,Parsing program options using `getopt',libc},
15 @url{https://www.gnu.org/software/libc/manual/html_node/Getopt.html},
18 @uref{https://www.kernel.org/doc/man-pages/online/pages/man3/getopt.3.html,,man getopt}.
21 Gnulib module: getopt-gnu
23 Portability problems fixed by Gnulib:
26 This header file is missing on some platforms:
27 AIX 5.1, HP-UX 11, MSVC 14.
29 The function @code{getopt_long} is missing on some platforms:
32 The function @code{getopt_long_only} is missing on some platforms:
33 FreeBSD 5.2.1, NetBSD 9.0, IRIX 6.5, Solaris 9, mingw.
35 The method to reset options is incompatible on some platforms:
36 FreeBSD 6.0, NetBSD 9.0(?), OpenBSD 6.7, Cygwin 1.5.x, mingw.
38 The function @code{getopt} does not handle a leading @samp{+} character in
39 the options string on some platforms:
43 Portability problems not fixed by Gnulib: