From 13c197fe1d45524a05436de557445137f2446e8e Mon Sep 17 00:00:00 2001 From: xamidev <121681048+xamidev@users.noreply.github.com> Date: Sun, 2 Jun 2024 18:04:06 +0200 Subject: [PATCH] Screen Output (partial) Responsiveness --- hex.c | 15 +++++++++++---- index.html | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 index.html 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