chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git] / klibc / klibc / inet / inet_addr.c
1 /*
2  * inet/inet_addr.c
3  */
4
5 #include <arpa/inet.h>
6 #include <stdio.h>
7
8 uint32_t inet_addr(const char *str)
9 {
10   struct in_addr a;
11   int rv = inet_aton(str, &a);
12
13   return rv ? INADDR_NONE : a.s_addr;
14 }