eth32cfg_ip_to_string

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

Summary

This function converts the eth32cfg_ip_t binary representation into a string. You must provide an valid buffer of at least 16 bytes to the function where the string will be written. The function will null-terminate the string.

Parameters

  • ipbinary - The IP address to be converted.

  • ipstring - Pointer to a string buffer where the string representation will be written. This buffer must be at least 16 bytes long or memory corruption could occur.

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_string_to_ip