diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-29 09:58:45 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-29 09:58:45 +0300 |
commit | f586cd49506935eb48a6afeaff6988087f947ed1 (patch) | |
tree | 13166b8ec1cbcf45b28607670dcb1b03c9cb1d38 /helpers/gendec.c | |
parent | b4ef28f58688cf3c3a5878c595b6582144ee2cf1 (diff) | |
parent | ff9ab7fc13c4fb96477fa07d681bad2c24b78ade (diff) | |
download | egawk-f586cd49506935eb48a6afeaff6988087f947ed1.tar.gz egawk-f586cd49506935eb48a6afeaff6988087f947ed1.tar.bz2 egawk-f586cd49506935eb48a6afeaff6988087f947ed1.zip |
Merge branch 'gawk-4.1-stable'
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; +} |