Write the plist_t structure to a NULL-terminated string using the given format and options.
- Parameters
-
| plist | The input plist structure |
| output | Pointer to a char* buffer. This function allocates the memory, caller is responsible for freeing it. |
| length | A pointer to a uint32_t value that will receive the lenght of the allocated buffer. |
| format | A plist_format_t value that specifies the output format to use. |
| options | One or more bitwise ORed values of plist_write_options_t. |
- Returns
- PLIST_ERR_SUCCESS on success or a plist_err_t on failure.
- Note
- Use plist_mem_free() to free the allocated memory.
-
PLIST_FORMAT_BINARY is not supported by this function.