summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
Diffstat (limited to 'ord.c')
-rw-r--r--ord.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ord.c b/ord.c
new file mode 100644
index 0000000..fd2eadf
--- /dev/null
+++ b/ord.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+int
+main (int argc, char* argv[]) {
+ if (argc<2) { return 1; }
+
+ int i = 0;
+ char* delim = "";
+ while (argv[1][i] != '\0') {
+ printf("%s%i",delim,(int)argv[1][i]);
+ delim=" ";
+ i++;
+ }
+}
+