-rw-r--r-- 163 saferewrite-20241004/src/int32_store_bigendian/ref/store.c raw#include <stdint.h> #include <string.h> #include <endian.h> void int32_store_bigendian(unsigned char *s,int32_t x) { x = htobe32(x); memcpy(s,&x,sizeof x); }