#include #include #include uint32_t uint32_load_bigendian(const unsigned char *s) { uint32_t x; memcpy(&x,s,sizeof x); return be32toh(x); }