repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
iconv: add euro symbol to GBK as single byte 0x80
[musl.git]
/
src
/
network
/
inet_addr.c
blob
11ece3d6f8f14c5a791d63ceeec7fc960b9de2e5
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
}