I just want to share this function

view story

http://www.unix.com – If you receive data from a remote host you might like this. I just used it to find out what data the recv function terminates strings with. Code: void dump(const unsigned char *data_buffer, const unsigned int length) {     unsigned char byte;     unsigned int i, j;     for(i=0; i < length; i++)     {         byte = data_buffer[i];         printf("%02x ", data_buffer[i]);      // Display byte in hex.         if(((i%16)==15) || (i==length-1))       (HowTos)