summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint64_pack_big.c
blob: c0bbcd76d5526ba2d1e8a30d14c6f7e5e102ec16 (plain)
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)) ;
}