This commit is contained in:
cathugger 2017-09-24 22:13:16 +03:00
commit 9b80e8676c
95 changed files with 6502 additions and 0 deletions

12
hex.h Normal file
View file

@ -0,0 +1,12 @@
#include <stdio.h>
static const char hext[] = "0123456789ABCDEF";
static void printhex(const char *z, size_t l)
{
printf("[");
for (size_t i = 0; i < l; ++i) {
printf("%c%c", hext[*z >> 4], hext[*z & 0xF]);
++z;
}
printf("]\n");
}