Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 7 months ago.
strstr
NUCLEO-F401RE
char a[100];
char substr[100];
strcpy(a,"text:unixtime:1234567#");
if (strstr("unixtime",rcv) != NULL) {
strcpy(substr,strstr("unixtime",a));
pc.printf("%s\r\n",substr);
}
Return only "unixtime" !!!! is not correct