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