-rw-r--r-- 168 saferewrite-20241004/src/uint8_load_bigendian/ref/load.c raw
#include <stdint.h> #include <string.h> #include <endian.h> uint8_t uint8_load_bigendian(const unsigned char *s) { uint8_t x; memcpy(&x,s,sizeof x); return x; }