C++程序  |  15行  |  286 B


#include <netinet/in.h>
#include <resolv.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
   printf("PRE _res.nscount = %d\n", _res.nscount);
   fflush(stdout);
   res_init();
   printf("POST _res.nscount = %d\n", ( int ) _res.nscount > 0 );
   fflush(stdout);
   return 0;
}