Hello, i'm trying to convert a message received with VirtualWire library that starts with an 'R' to an integer, but at this time i couldn't find an explanation to this.The message received is like "R016" and it is stored in a array like message and i want to convert message to integer (like atoi function does) but except the letter 'R'.Can you please give me some help?? THANKS in advance!!
int value = atoi(message+1);
int value = atoi(&message);
Thanks for the reply! I've corrected the size of array to 4 (message) to store the Rxxx value (forget the \r).So i basically need to use atoi function and point the beggining of convertion to position , is that what int value = atoi (message + 1) do, is that right??
[code]int value = atoi(&message)
int value = atoi(&1[message])
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16