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