about summary refs log tree commit diff
path: root/utils/convert.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-09-27 19:17:40 +0300
committerNakidai <nakidai@disroot.org>2024-09-27 19:17:40 +0300
commit34fc96bd1451d6f8dfa1add742dab6e5269ec411 (patch)
tree26d55a701c84ca2f97eacb49b5ff3829e60e14be /utils/convert.c
parentb3e4889f3d1bbf3a860e36e021e8d46d75446522 (diff)
downloadcptc-34fc96bd1451d6f8dfa1add742dab6e5269ec411.tar.gz
cptc-34fc96bd1451d6f8dfa1add742dab6e5269ec411.zip
Autogenerate root on build
Diffstat (limited to 'utils/convert.c')
-rw-r--r--utils/convert.c9
1 files changed, 9 insertions, 0 deletions
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);
+}