Ignore newlines in hex output

This commit is contained in:
Martin Lund 2022-06-17 10:06:13 +02:00
parent 4b928a54b2
commit 858b898bbb

View file

@ -29,14 +29,7 @@ char ansi_format[30];
void print_hex(char c)
{
if ((c == '\n') || (c == '\r'))
{
printf("%c", c);
}
else
{
printf("%02x ", (unsigned char) c);
}
printf("%02x ", (unsigned char) c);
fflush(stdout);
}