blob: 353c421f0b02651239b504a645f8666d3ba6d778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <stdint.h>
#include <string.h>
#include <skalibs/uint16.h>
void uint16_pack (char *s, uint16_t u)
{
uint16_littlep(u) ;
memcpy(s, &u, sizeof(uint16_t)) ;
}
|