ok, i've got one for ya!
i've just looked at a refernce for the atoi function in stdlib.h.
it states that atoi returns a 0 if it cannot convert the char*.
how, then, is "0" supposed to be converted with confirmation?
therefore, aoti cannot be used to check for a valid int in a character array. is the best way to achieve this to convert to ascii and test for the int range for each char in the array?
or is there a function that can do this?
TIA, rotis23



LinkBack URL
About LinkBacks


