Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
network
/
inet_ntoa.c
blob: 71411e0b5f145a59838a02149ef26644e6e4199f [
file
] [
log
] [
blame
]
#include
<arpa/inet.h>
#include
<stdio.h>
char
*
inet_ntoa
(
struct
in_addr in
)
{
static
char
buf
[
16
];
unsigned
char
*
a
=
(
void
*)&
in
;
snprintf
(
buf
,
sizeof
buf
,
"%d.%d.%d.%d"
,
a
[
0
],
a
[
1
],
a
[
2
],
a
[
3
]);
return
buf
;
}