Hi,
I wonder if there is a confd API to translate from confd_value_t *v to string/IP/int/…
Similar to confd_svcmp which compares between a string to value, if there is a conversion to/from the value.
thanks
Inbal
Hi,
I wonder if there is a confd API to translate from confd_value_t *v to string/IP/int/…
Similar to confd_svcmp which compares between a string to value, if there is a conversion to/from the value.
thanks
Inbal
I found the CONFD_GET_IPV4, but could not find the same for string.
please explain how to convert from confd_value_t to string.
thanks.
Inbal
CONFD_GET_BUFPTR() gives you the pointer to the string, CONFD_GET_BUFSIZE() gives you it’s size.
See confd_val2str() (and confd_str2val() for the other direction) in the confd_lib_lib(3) and confd_types(3) man pages.