summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint64_unpack_big.c
blob: 43ea79e592b01e56f783a151cd1d21a721ea677a (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_big (char const *s, uint64_t *u)
{
  uint64_t x ;
  memcpy(&x, s, sizeof(uint64_t)) ;
  *u = uint64_big(x) ;
}