![]() |
![]()
| ![]() |
![]()
NAMExt_ff_dsv_line_write() - Write a line of generic tabular data LIBRARY#include <xtend/ff-dsv.h> -lxtend SYNOPSISint xt_ff_dsv_line_write(xt_ff_dsv_line_t *xt_ff_dsv_line, FILE *stream) ARGUMENTSxt_ff_dsv_line Pointer to xt_ff_dsv_line_t structure holding the fields stream FILE stream to which fields are printed (e.g. stderr) DESCRIPTIONWrite an arbitrary DSV line to the specified stream. The xt_ff_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 VALUESThe number of fields successfully written EXAMPLESxt_ff_dsv_line_t *line = xt_ff_dsv_line_new(); while ( xt_ff_dsv_line_read(line, stdin, "t") != EOF ) { SEE ALSOxt_ff_dsv_line_new(3), xt_ff_dsv_line_free(3), xt_ff_dsv_line_read(3), xt_ff_dsv_line_write(3), xt_ff_dsv_line_copy(3), xt_ff_dsv_read_field(3), xt_ff_dsv_read_field_malloc(3), xt_ff_dsv_skip_field(3), xt_ff_dsv_skip_rest_of_line(3)
|