Function yaml_mapping_end_event_initialize

Synopsis

#include <include/yaml.h>

int yaml_mapping_end_event_initialize(yaml_event_t *event)

Description

Create a MAPPING-END event.

Parameters:

[ out ] event - An empty event object.

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

Source

Lines 968-978 in src/api.c. Line 648 in include/yaml.h.

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

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

    MAPPING_END_EVENT_INIT(*event, mark, mark);

    return 1;
}





Add Discussion as Guest

Log in to DocsForge