cleaned up a little
[tridge/junkcode.git] / hextobin.c
1 /* convert a hex stream to a file.
2    useful for reversing tcpdump or nc captures
3 */
4 #include <stdio.h>
5
6 int main(void)
7 {
8         int c;
9         while (scanf("%2x", &c) == 1) {
10                 fputc(c, stdout);
11         }
12         return 0;
13 }