skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

uint16_pack_big.c (193B)


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