README & COPYING
[mkp224o.git] / hex.h
blobc2f9c44bde349ac316e116fbed453de034d2390f
1 #include <stdio.h>
3 static const char hext[] = "0123456789ABCDEF";
4 static void printhex(const 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");