Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

OSS Library Calls (g - h) getopt(3)
The argv[optind] result points to the - (dash) string.
The getopt() function does increment optind if the result of argv[optind] points to the -- (dash
dash) string.
RELATED INFORMATION
Commands: getopt(1).
527187-007 Hewlett-Packard Company 355