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
Nice idea, but I have to have all entries for next string marked, so this makes no big difference.....
It sure does...
Think about it.
Ioannis
Bookmarks