aboutsummaryrefslogtreecommitdiff
path: root/client/xxd.c
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-26 15:44:26 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-26 15:44:26 +0200
commitee5d161f6153e1f9da73e477f63f38dcf52ca10c (patch)
tree926413950f64ed7b0f45f6b3551c16446ecd08d4 /client/xxd.c
parentc77d271d9cb86bf6893098ec6c431fc87945e6c9 (diff)
`make format`
Diffstat (limited to 'client/xxd.c')
-rw-r--r--client/xxd.c9
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");
}
}
-