summaryrefslogtreecommitdiff
path: root/helpers/gendec.c
blob: cc50db44948c444e97b134983958dcc82a0d1849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

int main()
{
	int c;
	int count = 0;

	while ((c = getchar()) != EOF) {
		printf("%d ", (c & 0xFF));
		if (++count > 30) {
			putchar('\n');
			count = 0;
		}
	}
	putchar('\n');

	return 0;
}