getopt.h
========

Defines the type struct option and declares the variables optarg, optind, opterr, optopt and the functions getopt, getopt_long, getopt_long_only.

Documentation:

  * Parsing program options using `getopt' (libc),

  * man getopt.

Gnulib module: getopt-gnu

Portability problems fixed by Gnulib:

  * This header file is missing on some platforms: AIX 7.2, HP-UX 11, MSVC 14.

  * The function getopt_long is missing on some platforms: IRIX 6.5, Solaris 9.

  * The function getopt_long_only is missing on some platforms: FreeBSD 5.2.1, NetBSD 9.0, IRIX 6.5, Solaris 9, mingw.

  * The method to reset options is incompatible on some platforms: FreeBSD 6.0, NetBSD 9.0(?), OpenBSD 6.7, Cygwin 1.5.x, mingw.

  * The function getopt does not handle a leading + character in the options string on some platforms: Solaris 11 2010-11.

Portability problems not fixed by Gnulib: