extern int optind;
optind holds the current index of the array argv[], which contains the command line options being parsed by getopt.
getopt