void inet_pton(int addr_family, const char *strptr, void *addrptr)
The inet_pton() function call converts the IP address pointed to by strptr, from presentation (string) format to numeric (binary) format, in the buffer pointed to by addrptr.