Removes and returns the last element in this list.
Documentation
Removes and returns the last element in this list.
This method has a time complexity of O(1).
Parameters:
list - The list to use
Returns:
void * retptr != (void*)-1: The last element in this list, may be NULL.
void * retptr == (void*)-1: An error, see pbl_errno:
PBL_ERROR_OUT_OF_BOUNDS - this list is empty.