This may be a dumb question, but i cant seem to find the solution. I have commands coming in from rs232 and i need to convert the ascii values to decimal values.
"Command01" converted and assigned to
int8 command = 1;
or more simply:
"255" converted and assigned to
int8 command = 255;
I dont see any built in function and dont see how sprintf or printf can help???
Thanks
Guest
Posted: Wed Oct 22, 2008 8:49 am
It's called - atoi() for ASCII to int - this is part of the standard C library and is in every C compiler I have ever seen.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum