diff options
Diffstat (limited to 'client/xxd.c')
-rw-r--r-- | client/xxd.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/client/xxd.c b/client/xxd.c index 5d83635..2b30dfb 100644 --- a/client/xxd.c +++ b/client/xxd.c @@ -1,5 +1,5 @@ -#include <stdio.h> #include <ctype.h> +#include <stdio.h> #include "xxd.h" @@ -33,12 +33,9 @@ void xxd(const char * data, size_t size) { continue; } - if (isprint(data[i])) - printf("%c", data[i]); - else - printf("."); + if (isprint(data[i])) printf("%c", data[i]); + else printf("."); } printf("|\n"); } } - |