diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-29 09:43:01 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-29 09:43:01 +0300 |
commit | ff9ab7fc13c4fb96477fa07d681bad2c24b78ade (patch) | |
tree | 0a0fc968ae304059215d408db8dcee015899dc9c /helpers/gendec.c | |
parent | 6399f5d208e8952f58e94502ab827cdae10b3787 (diff) | |
download | egawk-ff9ab7fc13c4fb96477fa07d681bad2c24b78ade.tar.gz egawk-ff9ab7fc13c4fb96477fa07d681bad2c24b78ade.tar.bz2 egawk-ff9ab7fc13c4fb96477fa07d681bad2c24b78ade.zip |
Make 4.1.2 release.
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; +} |