projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
unify lock and owner fields of mutex structure
[musl]
/
src
/
network
/
htons.c
1
#include <netinet/in.h>
2
3
uint16_t htons(uint16_t n)
4
{
5
union {
6
uint8_t b[2];
7
uint16_t s;
8
} u = { { n>>8, n } };
9
return u.s;
10
}