libplist  2.8.0
API Documentation - Return to Homepage

◆ plist_array_remove_item()

PLIST_API plist_err_t plist_array_remove_item ( plist_t node,
uint32_t n )

Remove an existing position in a PLIST_ARRAY node.

Removed position will be freed using plist_free.

Parameters
nodethe node of type PLIST_ARRAY
nThe position to remove. Range is [0, array_size[.
Returns
  • PLIST_ERR_SUCCESS on success.
  • PLIST_ERR_INVALID_ARG if node is not an array or n is outside the valid range.
  • PLIST_ERR_UNKNOWN if an unexpected internal error occurred while removing the item.