summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint16_pack_big.c
blob: 68342baf757073837f75ad549be07988831c6392 (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_big (char *s, uint16_t u)
{
  uint16_bigp(&u) ;
  memcpy(s, &u, sizeof(uint16_t)) ;
}