diff options
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/Makefile | 8 | ||||
| -rw-r--r-- | utils/convert.c | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/utils/Makefile b/utils/Makefile new file mode 100644 index 0000000..711ac68 --- /dev/null +++ b/utils/Makefile @@ -0,0 +1,8 @@ +RM = rm -f + +all: convert + +clean: + $(RM) convert + +.PHONY: all clean diff --git a/utils/convert.c b/utils/convert.c new file mode 100644 index 0000000..2fc711e --- /dev/null +++ b/utils/convert.c @@ -0,0 +1,9 @@ +#include <stdio.h> + + +int main(void) +{ + int c; + while ((c = getchar()) >= 0) + printf("\\x%X", c); +} |