blob: 9cc7e2af50fd9edefbaeee69aa8ec516335994c1 (
plain) (
blame)
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 (char *s, uint32_t u)
{
uint32_littlep(&u) ;
memcpy(s, &u, sizeof(uint32_t)) ;
}
|