1 2 3 4 5 6 7 8 9 10
/* ISC license. */ #include <string.h> #include <skalibs/uint64.h> void uint64_pack_big (char *s, uint64_t u) { u = uint64_big(u) ; memcpy(s, &u, sizeof(uint64_t)) ; }