#include // TODO: Error checking #define BYTES 1024 #define BYTES_PER_LINE 10 void print_hex(unsigned char* buf, int byteno) { for (int i=0; i