From eefbd029b55b2782b0d7b11b4989ce0ca9b256cd Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 15 Oct 2019 20:56:41 -0400 Subject: Massive organization of my dotfiles --- util/hexify.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 util/hexify.c (limited to 'util/hexify.c') diff --git a/util/hexify.c b/util/hexify.c new file mode 100644 index 0000000..3aec576 --- /dev/null +++ b/util/hexify.c @@ -0,0 +1,11 @@ +#include + +int main() { + int c; + while ((c = getchar()) != EOF) { + printf("\\x%X", c); + if ( c == '\n' ) { + puts(""); + } + } +} -- cgit v1.2.3