Printing Confd KeyPahts


In confd, there is a data structure called

typedef struct confd_hkeypath {
int len;
confd_value_t v[MAXDEPTH][MAXKEYLEN];
} confd_hkeypath_t;

Is there any utility I can use so that I can add this in my c++ files that print the logs in my system.

Thanks in advance.


there’s procedure confd_pp_kpath() in confd_lib.h that you can use to get textual representation of struct into char buffer…

Thanks for the help!