I am looking for a method that will do the opposite of memcpy when I make a copy of a buffer. For example, if I had this code
_memccpy(szbuffer, buffer, BUFFER_SIZE, 0);
The result of szbuffer is then binary. If I send this over from a socket to a server what can I use to convert the result of szbuffer back to text format instead of binary. I know that I can simply send it over as text but that is not an option for my assignment. Any suggestions?