Hey,
I am retrieving an int value from the command line argument. I run a test using isdigit() to make sure that the value present is indeed a digit, and then I save it in a variable of type int by using atoi(argv[1]). I heard elsewhere that using atoi in this regard is not the best practice, so my question is is there a better way to do this?