brian25
Member level 2
- Joined
- Feb 18, 2013
- Messages
- 52
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Activity points
- 1,601
how to separate the content of a char ex. Hello World then i will store the World in byte? tnx
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Code C - [expand] 1 2 3 4 5 6 7 8 9 for(i = 0; input_buf[i] != ' ' ; i++); i++; offset = i; for(; input_buf[i] != ' ' && input_buf[i] != '\0' ; i++) { out_buf[i - offset] = input_buf[i]; }
MatchState ms;
char * str = smsbuffer;
ms.Target (str);
unsigned int index = 0;
char buf [100];
while (true)
{
char result = ms.Match ("(%a+)" "(%-?%d+)", index);
if (result == REGEXP_MATCHED){
for (int j = 0; j < ms.level; j++);
gsm.WritePhoneNumber(result[j],(%-?%d+);
index = ms.MatchStart + ms.MatchLength;
}
else
break;
}
}