cyaml · Section 3
cyaml_list_get
NAME
cyaml_list_get - access a list element by index
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cyaml.h> cyaml cyaml_list_get(cyaml seq, size_t index);
DESCRIPTION
Returns the child at position index of seq. The list keeps owning the child, so the reference is borrowed.
RETURN VALUE
The child node, or NULL when index is out of bounds or seq is not a CYAML_LIST.