Function yaml_sequence_end_event_initialize

Synopsis

#include <include/yaml.h>

int yaml_sequence_end_event_initialize(yaml_event_t *event)

Description

Create a SEQUENCE-END event.

Parameters:

[ out ] event - An empty event object.

Return
1 if the function succeeded, 0 on error.
Create SEQUENCE-END.

Source

Lines 913-923 in src/api.c. Line 616 in include/yaml.h.

YAML_DECLARE(int)
yaml_sequence_end_event_initialize(yaml_event_t *event)
{
    yaml_mark_t mark = { 0, 0, 0 };

    assert(event);      /* Non-NULL event object is expected. */

    SEQUENCE_END_EVENT_INIT(*event, mark, mark);

    return 1;
}





Add Discussion as Guest

Log in to DocsForge