-rw-r--r-- 167 saferewrite-20240515/src/int16_load/ref/load.c raw
#include <stdint.h> #include <string.h> #include <endian.h> int16_t int16_load(const unsigned char *s) { int16_t x; memcpy(&x,s,sizeof x); return le16toh(x); }