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

#include <string.h>
#include <skalibs/uint64.h>

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