summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-06-21 21:44:46 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-06-21 21:44:46 -0400
commit896161c483ceef3ed16e2f19a5c05106bed04512 (patch)
tree8e79f92d7b3dfe09fa97f4ae5feb8331ad6fbb52 /ord.c
I can't believe I didn't have this in git before.
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++;
+ }
+}
+