Bug 497723 - forgot to restore callgrind output cleanup
[valgrind.git] / none / tests / solaris / resolv.c
blob078e142149b5f3887ddd991838f311799b411434
1 /* Tests initialization of the resolver library.
2 * Adapted from none/tests/resolv for Solaris.
3 */
5 #include <resolv.h>
6 #include <stdio.h>
7 #include <strings.h>
9 int main(int argc, char *argv[])
11 struct __res_state stats;
12 bzero(&stats, sizeof(stats));
14 printf("PRE stats->nscount = %d\n", stats.nscount );
15 fflush(stdout);
16 res_ninit(&stats);
17 printf("POST stats->nscount = %d\n", ( int ) stats.nscount > 0 );
18 fflush(stdout);
19 return 0;