#include <stdio.h>
#include <winsock2.h>
Go to the source code of this file.
◆ main()
Definition at line 4 of file gethostbyname.c.
4 {
6
8
11 if( !he ) {
13 return 1;
14 } else {
15 printf(
"Lookup of host %s returned %s\n",
17 return 0;
18 }
19 } else
20 return 1;
21}
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
int PASCAL FAR WSAGetLastError(void)