Forum Discussion
Altera_Forum
Honored Contributor
16 years agoGet integer value from character array
I have character arrays of 3 ascii characters representing range values from a sonar. I need to do some calculation on these values now. How can I convert the ascii char array to a valid integer ...
Altera_Forum
Honored Contributor
16 years agoAlso look for strtoul() - which will tell you how much of the string was
processed, allowing for much better error detecton. (But I'm not certain that it is in the lib that Altera provide.)