ucspi-ssl
0.99e
TLS encryption for IPv6 communication
ucspi-ssl-0.99e
src
uint32_pack.c
Go to the documentation of this file.
1
#include "uint32.h"
2
3
void
uint32_pack
(
char
s[4],uint32 u)
4
{
5
s[0] = u & 255;
6
u >>= 8;
7
s[1] = u & 255;
8
u >>= 8;
9
s[2] = u & 255;
10
s[3] = u >> 8;
11
}
12
13
void
uint32_pack_big
(
char
s[4],uint32 u)
14
{
15
s[3] = u & 255;
16
u >>= 8;
17
s[2] = u & 255;
18
u >>= 8;
19
s[1] = u & 255;
20
s[0] = u >> 8;
21
}
uint32_pack
void uint32_pack(char s[4], uint32 u)
Definition:
uint32_pack.c:3
uint32_pack_big
void uint32_pack_big(char s[4], uint32 u)
Definition:
uint32_pack.c:13
Generated on Wed Jul 11 2018 22:50:46 for ucspi-ssl by
1.8.13