iconv: add euro symbol to GBK as single byte 0x80
[musl.git] / src / network / inet_addr.c
blob11ece3d6f8f14c5a791d63ceeec7fc960b9de2e5
1 #include <sys/socket.h>
2 #include <netinet/in.h>
3 #include <arpa/inet.h>
5 in_addr_t inet_addr(const char *p)
7 struct in_addr a;
8 if (!__inet_aton(p, &a)) return -1;
9 return a.s_addr;