getopts_example.c bulked out to be added to other utils