Why not use a termination character, say 0 terminated string.
So you only have to check if you reached the 0 value in the data area that your message is stored.
This is what Richard suggested. No calculations required.
Ioannis
Why not use a termination character, say 0 terminated string.
So you only have to check if you reached the 0 value in the data area that your message is stored.
This is what Richard suggested. No calculations required.
Ioannis
Bookmarks