> Anthony Simon wrote:
> It appears that you didn't declare your variable as a pointer to a
> string.
> The following code seems to work fine.
> 
> int main(argc, argv)
>      int argc;
>      char *argv[];
> {
> 
>   struct hostent *h;
>   char *hostname[50];
> 
I wonder why. Declared thus, hostname is an array of
50 pointers-to-char. You should drop the "*". 

HTH,
Thomas

Reply via email to