What do you mean clear a buffer?
There is
orCode:char szBuffer[32]; memset( szBuffer, 0, sizeof(buffer) / sizeof(char) );
Basically the same thing...Code:char szBuffer[32]; ZeroMemory( szBuffer, sizeof(buffer) / sizeof(char) );
and for your second question take a look at these fuctions: htons(), htonl(), ntohs(), ntohl()... They might help.




Reply With Quote