libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_get_data_val()

PLIST_API void plist_get_data_val ( plist_t  node,
char **  val,
uint64_t *  length 
)

Get the value of a PLIST_DATA node.

This function does nothing if node is not of type PLIST_DATA

Parameters
nodethe node
vala pointer to an unallocated char buffer. This function allocates the memory, caller is responsible for freeing it.
lengththe length of the buffer
Note
Use plist_mem_free() to free the allocated memory.