summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint32_unpack_big.c
blob: 307141fa56302b4f43d02b2acf48bb1a57c32195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* 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) ;
}