Hi all.
Annyone have an idea of making a Left() function?
I'm trying to determ what kind of character in first 2 letters a serial.read() i get.
-Andy
Hi all.
Annyone have an idea of making a Left() function?
I'm trying to determ what kind of character in first 2 letters a serial.read() i get.
-Andy
strncmp() or strncpy() can be used for this.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.