-rw-r--r-- 167 saferewrite-20241004/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); }