projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
math: nextafter and nexttoward cleanup
[musl]
/
src
/
network
/
inet_addr.c
1
#include <sys/socket.h>
2
#include <netinet/in.h>
3
#include <arpa/inet.h>
4
#include "__dns.h"
5
6
in_addr_t inet_addr(const char *p)
7
{
8
struct sockaddr_in sin;
9
if (__ipparse(&sin, AF_INET, p)) return -1;
10
return sin.sin_addr.s_addr;
11
}