Home |
Function inet_addr |
Function inet_addrConvert a dotted-decimal format IP address to a 32-bit binary IP address. DWORD inet_addr(const char * string); ParametersstringDotted-decimal IP address (e.g. "205.161.8.1"). return valueReturns the IP address as a long in network byte order. If an error is detected, INADDR_NONE is returned. If a number is preceded by a zero, it is interpreted with base 8 (octal). Numbers preceded with '0x' use base 16, (hexadecimal). IP address strings with only 1, 2, or 3 parts are not supported.
|