diff options
Diffstat (limited to 'helpers/gendec.c')
-rw-r--r-- | helpers/gendec.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/helpers/gendec.c b/helpers/gendec.c new file mode 100644 index 00000000..cc50db44 --- /dev/null +++ b/helpers/gendec.c @@ -0,0 +1,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; +} |