repo.or.cz
/
mkp224o.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
removed tons of smart-looking slow code, made filters loading actually fast
[mkp224o.git]
/
hex.h
blob
3f904e74496f1badac6f96f931b472bb67befe8d
1
#include <stdio.h>
2
3
static const char
hext
[] =
"0123456789ABCDEF"
;
4
static void
printhex
(
const unsigned char
*
z
,
size_t
l
)
5
{
6
printf
(
"["
);
7
for
(
size_t
i
=
0
;
i
<
l
;++
i
) {
8
printf
(
"%c%c"
,
hext
[*
z
>>
4
],
hext
[*
z
&
0xF
]);
9
++
z
;
10
}
11
printf
(
"]
\n
"
);
12
}