From 574f32b4573637e87584ccc5baa2c110d04853c6 Mon Sep 17 00:00:00 2001 From: systemcoder Date: Sat, 21 Mar 2020 16:06:46 +0000 Subject: byte output is working --- H64E-2/h64e.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/H64E-2/h64e.c b/H64E-2/h64e.c index 80b085d..0a68734 100644 --- a/H64E-2/h64e.c +++ b/H64E-2/h64e.c @@ -203,9 +203,6 @@ int h64e_fmt_byte_align16(H64E_format *fs, uint8_t *in_data, int32_t in_size, ui { if (if_hex) { @@ -224,7 +221,6 @@ int h64e_fmt_byte_align16(H64E_format *fs, uint8_t *in_data, int32_t in_size, ui } } - if (fs->f_space) { //printf("Space enabled\n"); @@ -246,7 +242,7 @@ int h64e_fmt_byte_align16(H64E_format *fs, uint8_t *in_data, int32_t in_size, ui } } - /* + if (fs->f_output_types) { if (fs->output_fmt == H64E_O_INT8) @@ -258,7 +254,7 @@ int h64e_fmt_byte_align16(H64E_format *fs, uint8_t *in_data, int32_t in_size, ui buf3_sz = snprintf((char *)&buf3[0], BUF_SZ, "%4u ", uu); } } - */ + } else { printf("Empty spaces\n"); @@ -314,15 +310,18 @@ int h64e_fmt_byte_align16(H64E_format *fs, uint8_t *in_data, int32_t in_size, ui } } - /* - if (fs->f_output_types) + if ((fs->f_output_types==1)) { - if (buf2_sz+1f_output_types) { - buf2[buf2_sz] = '\n'; - buf2_sz += 1; + if (buf3_sz+1