unknown server error
Denys Vlasenko
vda.linux at googlemail.com
Thu Sep 6 16:32:10 UTC 2007
On Thursday 06 September 2007 12:36, nita lohia wrote:
> Hello
>
> here is full discription:
>
> #include<stdio.h>
> #include<netdb.h>
> int main()
> {
> struct hostenv *hp;
> char host[120];
> if(gethostname(host,sizeof(host))<0)
> return -1;
> printf("host:%s\n",host);
> if(hp=gethostbyname(host)==NULL)
> {
> printf("%s",hstrerror(h_errno));
> return -1;
> }
> printf("hello");
> return 0;
> }
My o/p ;)
$ ./a.out
host:vda.at.work
hello
--
vda
More information about the busybox
mailing list