Pages: [1]   Go Down
Author Topic: char to int  (Read 189 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 2
Posts: 212
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

its been a while since i coded arduino c++ 

i forgot what was the function to convert from char to int  (including char values as ascii zero or asci 32 )
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 89
Posts: 3453
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is atoi() what you are looking for ?
I am not sure how ASCII 32 (ie a space) could be converted to an int though.
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Pages: [1]   Go Up
Jump to: