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

#include <stdint.h>
#include <string.h>

#include <skalibs/uint32.h>

void uint32_unpack_big (char const *s, uint32_t *u)
{
  uint32_t x ;
  memcpy(&x, s, sizeof(uint32_t)) ;
  *u = uint32_big(x) ;
}