diff options
Diffstat (limited to 'hexbin.c')
-rw-r--r-- | hexbin.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/hexbin.c b/hexbin.c deleted file mode 100644 index 9356fff..0000000 --- a/hexbin.c +++ /dev/null @@ -1,24 +0,0 @@ -/* - * hexbin.c - * - * This program takes no arguments, it simply interprets its input as hex - * and outputs bytes. - */ - -#include <stdio.h> -#include <stdint.h> - -int main() -{ - uint8_t b; - - while (1) - { - scanf("%hhx", &b); - if (feof(stdin)) - break; - fwrite(&b, 1, 1, stdout); - } - - return 0; -} |