diff options
Diffstat (limited to 'lol.c')
-rw-r--r-- | lol.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; +} |