summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint32_pack_big.c
blob: 33bf9daea2f2511ccd1fdb5f6f03ac6079fcf50d (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_pack_big (char *s, uint32_t u)
{
  uint32_bigp(&u) ;
  memcpy(s, &u, sizeof(uint32_t)) ;
}