diff options
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/ChangeLog | 9 | ||||
-rw-r--r-- | helpers/genbin.awk | 5 | ||||
-rw-r--r-- | helpers/gendec.c | 18 |
3 files changed, 32 insertions, 0 deletions
diff --git a/helpers/ChangeLog b/helpers/ChangeLog index 5a3f2fe3..ba49ecbb 100644 --- a/helpers/ChangeLog +++ b/helpers/ChangeLog @@ -1,3 +1,12 @@ +<<<<<<< HEAD +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. + 2015-04-09 Andrew J. Schorr <aschorr@telemetry-investments.com> * testdfa.c (setup_pattern): Rationalize buffer size computations. 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; +} |