I\'ve read a getopt() example but it doesn\'t show how to accept integers as argument options, like cvalue would be in the code from the example:
cvalue
You need to use atoi() to convert from string to integer.
atoi()