optind

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

Data Type

Integer

Description

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

Syntax

optind = integer;

Valid Values

An integer between 0 and argc.

if (optind < argc) accept;

For more information, see the following: