option to use big-endian sorting for intfilter binsearch case
[mkp224o.git] / hex.h
blob3f904e74496f1badac6f96f931b472bb67befe8d
1 #include <stdio.h>
3 static const char hext[] = "0123456789ABCDEF";
4 static void printhex(const unsigned char *z,size_t l)
6 printf("[");
7 for (size_t i = 0;i < l;++i) {
8 printf("%c%c",hext[*z >> 4],hext[*z & 0xF]);
9 ++z;
11 printf("]\n");