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
apply hidden visibility to stdio internals
[musl.git]
/
src
/
network
/
inet_ntoa.c
blob
71411e0b5f145a59838a02149ef26644e6e4199f
1
#include <arpa/inet.h>
2
#include <stdio.h>
3
4
char
*
inet_ntoa
(
struct
in_addr in
)
5
{
6
static char
buf
[
16
];
7
unsigned char
*
a
= (
void
*)&
in
;
8
snprintf
(
buf
,
sizeof
buf
,
"%d.%d.%d.%d"
,
a
[
0
],
a
[
1
],
a
[
2
],
a
[
3
]);
9
return
buf
;
10
}