diff --git a/hex.c b/hex.c index 91f6f16..9d4f9e9 100644 --- a/hex.c +++ b/hex.c @@ -1,12 +1,15 @@ #include #include +#include +#include // TODO: Skip repeating lines #define BYTES 1024 -#define BYTES_PER_LINE 20 +//#define BYTES_PER_LINE 10 +#define round(x) (int)(x < 0 ? (x -0.5) : x + 0.5) -void print_hex(unsigned char* buf, int byteno, int pos) +void print_hex(unsigned char* buf, int byteno, int pos, int BYTES_PER_LINE) { for (int i=0; iGoogle



 

Recherche avancée

© 2024 - Confidentialité - Conditions

\ No newline at end of file