I have a buffer called sendbuf. I am using it in a winsock program. It is set to the text the user entered, and then sent to the server. The problem is, that if a user types in "test" and then "a" the output would be "aest". I need to clear the sendbuf array so that it doesn't have leftover characters from the last input, but i cant figure out how!
sendbuf = ""; gets errors.
help would be nice
Thx in advance,
Glorfindel