diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-10-15 20:56:41 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-10-15 20:56:41 -0400 |
| commit | eefbd029b55b2782b0d7b11b4989ce0ca9b256cd (patch) | |
| tree | 535511fd3154342117d67171e28a312bd30c7f87 /util/hexify.c | |
| parent | 5840f413825e053b645a338d71c1916a06094335 (diff) | |
| download | dotfiles-eefbd029b55b2782b0d7b11b4989ce0ca9b256cd.tar.gz dotfiles-eefbd029b55b2782b0d7b11b4989ce0ca9b256cd.tar.xz | |
Massive organization of my dotfiles
Diffstat (limited to 'util/hexify.c')
| -rw-r--r-- | util/hexify.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <stdio.h> + +int main() { + int c; + while ((c = getchar()) != EOF) { + printf("\\x%X", c); + if ( c == '\n' ) { + puts(""); + } + } +} |
