Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 25626 Details for
Bug 41608
gethostbyname failure in net-dns/noip-updater
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Simple test program for the gethostbyname() function
gh.c (text/plain), 438 bytes, created by
José Romildo Malaquias
on 2004-02-14 17:44:58 UTC
(
hide
)
Description:
Simple test program for the gethostbyname() function
Filename:
MIME Type:
Creator:
José Romildo Malaquias
Created:
2004-02-14 17:44:58 UTC
Size:
438 bytes
patch
obsolete
>#include <stdio.h> >#include <netdb.h> > >int main(void) >{ > struct hostent * h; > int i; > > h = gethostbyname("dynupdate.no-ip.com"); > > if (! h) > { > herror("ERROR FOUND: "); > return 1; > } > > printf("name = %s\n", h->h_name); > printf("addrtype = %i\n", h->h_addrtype); > printf("length = %i\n", h->h_length); > for (i = 0; i < 4; i++) > printf("%i.", h->h_addr_list[0][i] & 0xff); > printf("\n"); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 41608
: 25626