I'm trying to use the function gethostbyname, but my code:
int handleTCP(char *hostname, char* portNo){
struct hostent *hp = gethostbyname(hostname);
...
}
Keeps returning:
21: warning: initialization makes pointer from integer without a cast
Does anyone know what is wrong with my syntax?
thanks