#include #include #include void int32_store(unsigned char *s,int32_t x) { x = htole32(x); memcpy(s,&x,sizeof x); }