#include #include #include void uint32_store_bigendian(unsigned char *s,uint32_t x) { x = htobe32(x); memcpy(s,&x,sizeof x); }