4 #include <netinet/in.h>
11 struct sockaddr_in ad
;
12 struct sockaddr_in ad2
;
13 memset (&ad
, '\0', sizeof (ad
));
14 memset (&ad2
, '\0', sizeof (ad2
));
18 printf ("addr = %s:%d\n", inet_ntoa (ad
.sin_addr
), ad
.sin_port
);
20 return memcmp (&ad
, &ad2
, sizeof (ad
)) == 0;
23 #define TEST_FUNCTION do_test ()
24 #include "../test-skeleton.c"