libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_get_string_ptr()

PLIST_API const char * plist_get_string_ptr ( plist_t  node,
uint64_t *  length 
)

Get a pointer to the buffer of a PLIST_STRING node.

Note
DO NOT MODIFY the buffer. Mind that the buffer is only available until the plist node gets freed. Make a copy if needed.
Parameters
nodeThe node
lengthIf non-NULL, will be set to the length of the string
Returns
Pointer to the NULL-terminated buffer.