Thanks, that clears up a lot.
are doing the same thing, recasting as pointers as I see it. Does this mean host->h_addr is a reference or can anything be recast as a pointer, say an int or a pointer to a pointer to a char, a pointer to a pointer to a pointer to an array?
ETA: I guess my question is: what sort of things could host->h_addr possibly be aside from a reference?
ETA2: The application looks like this in regards to the host pointer:
struct hostent *host; if ((host = gethostbyname("localhost")) == NULL)
Should there be an
between those two lines?