repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
iconv: add euro symbol to GBK as single byte 0x80
[musl.git]
/
src
/
network
/
htonl.c
blob
6622d16cc5351749d1b76c5f24aa71009b018ff0
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
}