diff options
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(""); + } + } +} |
