Remote Administration Daemon Developer Guide

Exit Print View

Updated: July 2014
 
 

String Representation

It is sometimes necessary to represent, either in human-readable output or in persistent storage, an ADR object name as a string. libadr provides routines for converting to a canonical string form.

char *adr_name_tostr(const adr_name_t *name);

adr_name_tostr takes an adr_name_t and formats it in string form. The return value is allocated using malloc and should be freed when the caller is done with it. adr_name_tostr will return NULL if it is unable to allocate memory for its return value.