summary refs log tree commit diff
path: root/utils
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
parentb3e4889f3d1bbf3a860e36e021e8d46d75446522 (diff)
downloadcptc-34fc96bd1451d6f8dfa1add742dab6e5269ec411.tar.gz
cptc-34fc96bd1451d6f8dfa1add742dab6e5269ec411.zip
Autogenerate root on build
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile8
-rw-r--r--utils/convert.c9
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);
+}