diff --git a/hex.c b/hex.c index f8d3460..ad7b46b 100644 --- a/hex.c +++ b/hex.c @@ -1,21 +1,59 @@ #include +#include // TODO: ASCII/Position printing // TODO: Stop appending garbage at file end +// TODO: Simplify/clean some code (useless condition/loop guard brackets) #define BYTES 1024 -#define BYTES_PER_LINE 10 +#define BYTES_PER_LINE 20 void print_hex(unsigned char* buf, int byteno) -{ +{ for (int i=0; i