how to separate the content of a char ex. Hello World then i will store the World in byte? tnx
A char is an atomic entity. It can not be separated.
A char array is a different story. The strtok() function is one (easy) way.
Pssst! You forgot to post your code.
You can search for a character with function strchr. In your case, search for a space and add 1 to get the position of the 'W'
i'm using gsm lib and i want to get the smsbuffer content since it is a char i want to separate then store it in byte. can you give me an example how to do it. tnx
i want to get the smsbuffer content since it is a char
It is NOT. It is a char ARRAY!
i want to separate then store it in byte.
Separate on what boundaries? You can not store a string, or substring, in a byte. You could store it in a byte ARRAY. But, why?
Do you use Nick Gammon's regexp library?
This line is probably wrong: gsm.WritePhoneNumber(result, "(%-?%d+)");
Everything else is up to you to find out (since you don't provide enough info to get proper help).