C Collections

cyaml · Section 3

cyaml_list_get

cyaml_list_get - access a list element by index

C Collections (libccollections, -lccollections)

#include <ccollections/cyaml.h>
 
cyaml cyaml_list_get(cyaml seq, size_t index);

Returns the child at position index of seq.  The list keeps owning
the child, so the reference is borrowed.

The child node, or NULL when index is out of bounds or seq is not a
CYAML_LIST.

cyaml_list_push(3), cyaml_list_size(3)