summaryrefslogtreecommitdiff
path: root/ord.c
blob: 6445d3fc5e398a6bdd54c99c7b31583c020a9111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Copyright (C) 2011, 2013-2014 Luke Shumaker <lukeshu@sbcglobal.net> */
#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++;
	}
	putchar('\n');
}