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

#include <string.h>

#include <skalibs/uint64.h>

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