Next: , Previous: Chain allocation, Up: Chains


13.3 Getting information about a chain

— Function: int chain_valid_p (const Chain *chain)

Returns non-zero iff the memory referenced by chain represents a valid ‘Chain’. Note that in the current implementation, this function may not terminate for certain classes of ill-formed chains.

— Function: ssize_t chain_length (const Chain *chain)

Returns the number of elements in chain.