Generates a C function that uses getopt_long function
