optind

  • Version 3.5 and earlier : optind variable not available.
  • Version 4.0 and later: optind variable available.

Integer

Used with getopt functions. Contains the current argument list index.

optind = integer;

An integer between 0 and argc.

if (optind < argc) accept;

For more information, please see the following: