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