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