Reading in serial data and using strcmp

I think it needs null terminated strings.

If you just want to compare a few characters maybe the simplest thing would be to write your own function.

...R