Evening All
Would some kindly sole please tell me how to remove x number of chars from the front of a char array of length MAX_CHARS and shift all the remaining chars down ?
My array is a fixed length, but the chars are terminated by a # character.
Oh I do love CString !!!
C has reasonable support for strings. The Arduino comes with a String class, and you can use the STL std::string class if you install STL. Plus all the usual C string manipulation. Plus streams.
However remember memory is tight. It might be better to advance your pointer to point 4 bytes in (effectively removing the head of the string) rather than copying bytes here and there.
I implemented my solution using the String class and by the time I had finished reading the serial port, and done a bit of searching, I ran right out of memory!
Thus my delve back into the dark times before VC++'s CString class !!!! (and more memory than you can shake a stick at lol)