Next: , Previous: Darray allocation, Up: Dynamic arrays


12.3 Getting the status of a darray

— Function: int da_valid_p (const Darray *da)

Returns non-zero iff the memory referenced by da represents a valid darray.

— Function: size_t da_object_size (const Darray *da)

Returns the size of the objects stored by da.

— Function: ssize_t da_length (const Darray *da)

Returns the number of elements in da.

— Function: int da_equal (const Darray *left, const Darray *right, Da_compare_f cmp, void *cmp_args)

Determines whether left and right are equal. They are deemed to be equal iff the following conditions hold:

(See Darray searching for details of the ‘Da_compare_f’ type.)