Hi all,
I want to search a "Char Variable" for the characters "Status Code: 401".
I have looked on the internet but have not been able to find what I need so any help would be awesome!
Thanks,
Zeb
Hi all,
I want to search a "Char Variable" for the characters "Status Code: 401".
I have looked on the internet but have not been able to find what I need so any help would be awesome!
Thanks,
Zeb
ZebH:
I have looked on the internet but have not been able to find what I need so any help
How about here: http://www.cplusplus.com/reference/cstring/
Sweet as, thanks Faraday Member!
I still can't find anything that will search for a string of letter inside a char except strncmp() which compares 2 variables.
Am I missing something?
Ooops sorry I have achieved it.
if (strpbrk(postResponse, "401")) {
Serial.println("ERROR");
}