summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint64_pack.c
blob: 5e8025c1f1d061b4e627f3bfa9a0bb3694192da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <string.h>

#include <skalibs/uint64.h>

void uint64_pack (char *s, uint64_t u)
{
  uint64_littlep(&u) ;
  memcpy(s, &u, sizeof(uint64_t)) ;
}