#include #include #include extern int h_errno; int main(const int argc, const char *argv[]) { struct hostent *hp; hp = gethostbyname(argv[1]); printf("hp=%p h_errno=%d\n", hp, h_errno); return 0; }