Create getopt.c

POSIX getopt implementation