Originally Posted by kevinv2u
I know that both code is the same, and I also know that a string is actually an array of characters.
What I meant was that I want to assign a pointer char array, so I can have some sort of string array to assign multiple string values to the buffer with use of the index like this:
Buff = "hello"
Buff = "world"
I know I can just put all strings behind each other with \0 too, but I like the above method and want to use that in my 'client' too...
Aaah, I'll guess I will have to read some more about C tough.
You could alternatively serialise the length before each string. But the key is that you ARE doing serialisation / deserialisation here.