HCoop
/
hcoop
/
zz_old
/
debian
/
djbdns.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
release
[hcoop/zz_old/debian/djbdns.git]
/
uint16_pack.c
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
}