diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-06-21 21:44:46 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-06-21 21:44:46 -0400 |
commit | 896161c483ceef3ed16e2f19a5c05106bed04512 (patch) | |
tree | 8e79f92d7b3dfe09fa97f4ae5feb8331ad6fbb52 /ord.c |
I can't believe I didn't have this in git before.
Diffstat (limited to 'ord.c')
-rw-r--r-- | ord.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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++; + } +} + |