eth32cfg_string_to_ip

int eth32cfg_string_to_ip(const char *ipstring, eth32cfg_ip_t *ipbinary);

Summary

This function converts a string representation of an IP address into the eth32cfg_ip_t binary representation of an IP address. If the string doesn't contain a valid IP address, an ETH_INVALID_IP error will be returned.

Parameters

  • ipstring - The IP address to be converted.

  • ipbinary - Pointer to an eth32cfg_ip_t structure which will be filled in with the converted IP address.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

See Also

eth32cfg_ip_to_string