projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
11ece3d6f8f14c5a791d63ceeec7fc960b9de2e5
[musl]
/
src
/
network
/
inet_addr.c
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
}