3 static const char hext
[] = "0123456789ABCDEF";
4 static void printhex(const unsigned char *z
,size_t l
)
7 for (size_t i
= 0;i
< l
;++i
) {
8 printf("%c%c",hext
[*z
>> 4],hext
[*z
& 0xF]);
14 static void printbin(const unsigned char *z
,size_t l
)
17 for (size_t i
= 0;i
< l
;++i
) {
18 printf("%c%c%c%c%c%c%c%c",