2 ms·
I, as most developers, appreciate well commented code. But as others have mentioned you are going a bit too far. // The user has given and illegal number or
by fallenhitokiri 14y ago
I, as most developers, appreciate well commented code. But as others have mentioned you are going a bit too far.
// The user has given and illegal number or type of arguments. The program
// usage is printed to the standard error stream and we exit abnormally.
fprintf(stderr, USAGE);
exit(EX_USAGE);
What else is it supposed to be? This is, even for me who does not use C(++) on a regular basis, obvious.
It looks like you are interested in writing well documented code. I think a good example you can learn a lot from is Redis[1]. Also written in C.
[1] https://github.com/antirez/redis https://github.com/antirez/redis
//edit: fixed typo