/* ISC license. */ #include #include #include void uint16_pack (char *s, uint16_t u) { uint16_littlep(&u) ; memcpy(s, &u, sizeof(uint16_t)) ; }