optarg, opterr, optind, optopt - options parsing variables
#include <stdio.h> extern char *optarg; extern int opterr, optind, optopt;
Refer to getopt().