projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6622d16cc5351749d1b76c5f24aa71009b018ff0
[musl]
/
src
/
network
/
htonl.c
1
#include <netinet/in.h>
2
#include <byteswap.h>
3
4
uint32_t htonl(uint32_t n)
5
{
6
union { int i; char c; } u = { 1 };
7
return u.c ? bswap_32(n) : n;
8
}