Function yaml_stream_end_event_initialize

Synopsis

#include <include/yaml.h>

int yaml_stream_end_event_initialize(yaml_event_t *event)

Description

Create the STREAM-END event.

Parameters:

[ out ] event - An empty event object.

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

Mentioned in

Source

Lines 685-695 in src/api.c. Line 502 in include/yaml.h.

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

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

    STREAM_END_EVENT_INIT(*event, mark, mark);

    return 1;
}





Add Discussion as Guest

Log in to DocsForge