Got a formatting question here:
Trying to send data string over to a server via send();
The problem is that I want to enclose the data string with double-quotes, "data string" should be displayed on the server side. The method I used is using two double_quotes on each end of the data string, writing the string with the double_quotes to another string and lastly, send the second string using send(). However, the result is the data string without the double quotes I added? Why?
_snprintf(user_message,MESSAGE_LINE_SIZE, "MESSAGE ""%s""\r",s);