diff options
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/ChangeLog | 8 | ||||
-rw-r--r-- | helpers/genbin.awk | 5 | ||||
-rw-r--r-- | helpers/gendec.c | 18 |
3 files changed, 31 insertions, 0 deletions
diff --git a/helpers/ChangeLog b/helpers/ChangeLog index a5bbafb1..318675ff 100644 --- a/helpers/ChangeLog +++ b/helpers/ChangeLog @@ -1,3 +1,11 @@ +2015-04-29 Arnold D. Robbins <arnold@skeeve.com> + + * gende.c, genbin.awk: New files. + +2015-04-29 Arnold D. Robbins <arnold@skeeve.com> + + * 4.1.2: Release tar ball made. + 2014-09-04 Arnold D. Robbins <arnold@skeeve.com> * chlistref.awk: New file. Finds @ref{} to non-chapters. diff --git a/helpers/genbin.awk b/helpers/genbin.awk new file mode 100644 index 00000000..12b280e5 --- /dev/null +++ b/helpers/genbin.awk @@ -0,0 +1,5 @@ +{ + for (i = 1; i <= NF; i++) { + printf("%c", $i) + } +} 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; +} |