Converts an IP address in standard dotted decimal notation to an Internet address.
#include <arpa/inet.h>
in_addr_t inet_addr (
const char *string);
(IN) Points to the character string (in Internet standard dotted notation) that represents the Internet address.
If successful, returns the Internet address. Otherwise, returns (in_addr_t)(-1).
The Internet addresses are returned in an in_addr_t structure. For details of this structure, which is also called in_addr, see in_addr.
Values specified using dotted notation take one of the following forms:
All numbers supplied as parts in dotted notation can be expressed in decimal, octal, or hexadecimal, as specified in the C language. (A leading 0x or 0X implies a hexadecimal number, and a leading 0 implies an octal number; otherwise, the number is interpreted as decimal.)