ucspi-ssl  0.99e
TLS encryption for IPv6 communication
uint16_pack.c
Go to the documentation of this file.
1 #include "uint16.h"
2 
3 void uint16_pack(char s[2],uint16 u)
4 {
5  s[0] = u & 255;
6  s[1] = u >> 8;
7 }
8 
9 void uint16_pack_big(char s[2],uint16 u)
10 {
11  s[1] = u & 255;
12  s[0] = u >> 8;
13 }
void uint16_pack(char s[2], uint16 u)
Definition: uint16_pack.c:3
void uint16_pack_big(char s[2], uint16 u)
Definition: uint16_pack.c:9
unsigned short uint16
Definition: uint16.h:4