extern int optopt;
optopt holds the unknown option character when that option character is not recognized by getopt.
getopt