ip4addr_aton() function
Check whether "cp" is a valid ascii representation of an Internet address and convert to a binary address. Returns 1 if the address is valid, 0 if not. This replaces inet_addr, the return value from which cannot distinguish between failure and a local broadcast address.
Arguments
cp
IP address in ascii representation (e.g. "127.0.0.1")
addr
pointer to which to save the ip address in network order
Return value
1 if cp could be converted to addr, 0 on failure