/* ISC license. */ #include #include #include void uint32_pack (char *s, uint32_t u) { uint32_littlep(&u) ; memcpy(s, &u, sizeof(uint32_t)) ; }