Source code is if ((host = gethostbyname(pHost)) == NULL | host->h_addrtype != AF_INET) { Maybe better code: if ((host = gethostbyname(pHost)) == NULL || host->h_addrtype != AF_INET) {