#include #include #include uint8_t uint8_load_bigendian(const unsigned char *s) { uint8_t x; memcpy(&x,s,sizeof x); return x; }