projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3544a4798cfc43ea3f6fe8cddd698c78d66a0279
[musl]
/
src
/
network
/
ntohs.c
1
#include <netinet/in.h>
2
3
uint16_t ntohs(uint16_t n)
4
{
5
union {
6
uint16_t s;
7
uint8_t b[2];
8
} u = { n };
9
return (u.b[0]<<8) | u.b[1];
10
}