I might be missing something plainly obvious here but is it possible to have the first element of a string contain the value of an integer between 0 and 255?
What I want is to send data over TCP/IP and I want the number of bytes to be contained in the first element.
For arguments sake, if the number of bytes in my stirng is 14 then I want to create a new string with 15 bytes. The first byte should contain the value 14.
itoa() seems no good as it will put '1' in the first byte and '4' in the second and I want the first byte to contain '14'.
I will then need to read this value at the other end.
Something seems really obvious about this, but I can't seem to figure it out.