void hexDump(const char* buf, int len) { if (len < 1 || buf == NULL) return; const char *hexChars = "0123456789ABCDEF"; int i = 0; char c = 0x00; char str_print_able[17]; char str_hex_buffer[16 * 3 + 1]; for (i = 0; i < (len / 16) * 16; i += 16) { ...
fprintf将FILE *作为其第一个参数,指定要写入的文件。您传递的是line(用于输入的char缓冲区),这没...