I am using this :
if(strstr(inData, respond) != NULL)
to search for the string CMD
inside inData
.
problem is that when new data looks like this :
Reboot
CMD
strstr
will not find it, because it stops searching where is a new line.
Is there an elegant way (not using fancy functions since I can't) to get over it ?