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
In this situation i would go for a sscanf().
sscanf()