home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tcp30tkt.zip
/
PGMG1.ZIP
/
SAMPLES
/
SAMPDLL
/
MYPROG.C
next >
Wrap
Text File
|
1995-12-04
|
371b
|
25 lines
#include <stdio.h>
#include <stdlib.h>
char * s_gethostbyname(char *);
main(argc, argv)
int argc;
char *argv[];
{
char *hostnm;
if (argc != 2)
{
fprintf(stderr, "Usage: %s hostname \n", argv[0]);
exit(1);
}
hostnm = s_gethostbyname(argv[1]);
printf(" Internet address is : %s\n", hostnm);
}