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