☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
network
/
inet_addr.c
☽
☼
libc-top-half/musl/src/network/inet_addr.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#include <sys/socket.h>
2
#include <netinet/in.h>
3
#include <arpa/inet.h>
4
5
in_addr_t inet_addr(const char *p)
6
{
7
struct in_addr a;
8
if (!__inet_aton(p, &a)) return -1;
9
return a.s_addr;
10
}