# Printing Confd KeyPahts

**URL:** <https://dmap-community.ductus.global/t/printing-confd-keypahts/2382>\
**Category:** CDB and CDB API\
**Created:** [March 28, 2019, 6:35am UTC](https://dmap-community.ductus.global/t/printing-confd-keypahts/2382 "2019-03-28T06:35:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramakrishnan](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Ramakrishnan](https://dmap-community.ductus.global/u/Ramakrishnan)\
**Post date:** [March 28, 2019, 6:35am UTC](https://dmap-community.ductus.global/t/printing-confd-keypahts/2382/1 "2019-03-28T06:35:02Z")

</div>

Hi,

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.

---

<div class="post-metadata">

**Author:** ![josephm](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@josephm](https://dmap-community.ductus.global/u/josephm)\
**Post date:** [March 28, 2019, 10:37am UTC](https://dmap-community.ductus.global/t/printing-confd-keypahts/2382/2 "2019-03-28T10:37:13Z")

</div>

Hello,

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

---

<div class="post-metadata">

**Author:** ![Ramakrishnan](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Ramakrishnan](https://dmap-community.ductus.global/u/Ramakrishnan)\
**Post date:** [April 3, 2019, 6:03am UTC](https://dmap-community.ductus.global/t/printing-confd-keypahts/2382/3 "2019-04-03T06:03:06Z")

</div>

Thanks for the help!
