While playing around with getting host entries to work with ldap, I found that my previous code for using gethostbyname was not running clean on puias6. Here is an updated version
#include
#include
#include
#include
#include
#includeint main(int argc, char **argv) {
int i;
struct hostent *hp;
struct in_addr **addr_list;if (argc < 2) {
printf("Usage: %s hostname\n", argv[0]);
exit(1);
}