Function yaml_emitter_set_width

Synopsis

#include <include/yaml.h>

void yaml_emitter_set_width(yaml_emitter_t *emitter, int width)

Description

Set the preferred line width. -1 means unlimited.

Parameters:

[ in,out ] emitter - An emitter object.

[ in ] width - The preferred line width.

Set the preferred line width.

Source

Lines 547-553 in src/api.c. Line 1885 in include/yaml.h.

YAML_DECLARE(void)
yaml_emitter_set_width(yaml_emitter_t *emitter, int width)
{
    assert(emitter);    /* Non-NULL emitter object expected. */

    emitter->best_width = (width >= 0) ? width : -1;
}





Add Discussion as Guest

Log in to DocsForge