git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
handle multi-part files
[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
}