Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
network
/
ntohl.c
blob: 02b28939a4440c32d6f83aa111426d79206f29ee [
file
] [
log
] [
blame
]
#include
<byteswap.h>
#include
<netinet/in.h>
uint32_t
ntohl
(
uint32_t
n
)
{
union
{
int
i
;
char
c
;
}
u
=
{
1
};
return
u
.
c
?
bswap_32
(
n
)
:
n
;
}