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