Quiet -Wparentheses warnings.
[glibc/history.git] / resolv / tst-aton.c
blob818f9ed61ba26b522aa12eb4243f7044f6a55d25
1 #include <stdio.h>
2 #include <sys/socket.h>
3 #include <netinet/in.h>
4 #include <arpa/inet.h>
6 enum { buf_size = 16 };
7 static char buf[buf_size] = "323543357756889";
9 int
10 main (int argc, char *argv[])
12 struct in_addr addr;
13 int result = 0;
15 if (inet_aton (buf, &addr) != 0)
17 printf ("%s is seen as a valid IP address\n", buf);
18 result = 1;
21 return result;