add first getopt example in C

Added a first getopt example which shows how to parse command line
options in C using getopt().