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

#include <stdint.h>
#include <string.h>
#include <skalibs/uint32.h>

void uint32_pack (char *s, uint32_t u)
{
  u = uint32_little(u) ;
  memcpy(s, &u, sizeof(uint32_t)) ;
}