Sign in
cobalt
/
cobalt
/
5864f47b864e8bb7b417f15981009ad93bdff2ac
/
.
/
third_party
/
musl
/
src
/
network
/
inet_addr.c
blob: 10b21f211cfd7a9b6044c5ac88704daeea1d9b66 [
file
] [
log
] [
blame
]
#include
<sys/socket.h>
#include
<netinet/in.h>
#include
<arpa/inet.h>
int
__inet_aton
(
const
char
*,
struct
in_addr
*);
in_addr_t
inet_addr
(
const
char
*
p
)
{
struct
in_addr a
;
if
(!
__inet_aton
(
p
,
&
a
))
return
-
1
;
return
a
.
s_addr
;
}