Sign in
android
/
platform
/
external
/
musl
/
refs/heads/android13-d4-release
/
.
/
src
/
network
/
inet_addr.c
blob: 11ece3d6f8f14c5a791d63ceeec7fc960b9de2e5 [
file
] [
log
] [
blame
] [
edit
]
#include
<sys/socket.h>
#include
<netinet/in.h>
#include
<arpa/inet.h>
in_addr_t
inet_addr
(
const
char
*
p
)
{
struct
in_addr a
;
if
(!
__inet_aton
(
p
,
&
a
))
return
-
1
;
return
a
.
s_addr
;
}