aboutsummaryrefslogtreecommitdiff
path: root/lol.c
diff options
context:
space:
mode:
Diffstat (limited to 'lol.c')
-rw-r--r--lol.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lol.c b/lol.c
new file mode 100644
index 0000000..34b21f9
--- /dev/null
+++ b/lol.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ if (argc != 2)
+ return 1;
+ const char *s = argv[1];
+ for (int i = 0; s[i] != '\0'; i++) {
+ const unsigned int c = (unsigned char)s[i];
+ printf("%d/%#x ", c, c);
+ }
+ putchar('\n');
+ return 0;
+}