dsv_line_write(3)

LIBRARY
#include <xtend/dsv.h>
-lbiolibc

SYNOPSIS

int     dsv_line_write(dsv_line_t *dsv_line, FILE *stream)

ARGUMENTS
dsv_line    Pointer to dsv_line_t structure holding the fields
stream      FILE stream to which fields are printed (e.g. stderr)

DESCRIPTION
Write an arbitrary DSV line to the specified stream. The dsv_line_t structure contains an array of strings, each holding one field from the line, and an an array of delimiters, each holding the character that ended the corresponding field. Note that each field could potentially end with a different delimiter, as multiple delimiters can be specified.

RETURN VALUES
The number of fields successfully written

EXAMPLES
dsv_line_t  line;
dsv_line_init(&line);
while ( dsv_line_read(&line, stdin, "t") != EOF )
{
    dsv_line_write(line, stdout);
    dsv_line_free(&line);
}

SEE ALSO
dsv_line_init(3), dsv_line_free(3), dsv_line_read(3), dsv_line_write(3), dsv_line_copy(3), dsv_read_field(3), dsv_read_field_malloc(3), dsv_skip_field(3), dsv_skip_rest_of_line(3)