Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
xt_dsv_line_init(3)	   Library Functions Manual	   xt_dsv_line_init(3)

NAME
       xt_dsv_line_init() - Initialize generic tabular data object

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

SYNOPSIS
       void    xt_dsv_line_init(xt_dsv_line_t *xt_dsv_line)

ARGUMENTS
       xt_dsv_line    Pointer to a xt_dsv_lint_t object.

DESCRIPTION
       Initialize a xt_dsv_line_t structure.  The xt_dsv_line_t	structure con-
       tains an	array of strings, each holding one field from the line,	and an
       an  array of delimiters,	each holding the character that	ended the cor-
       responding field.  Note that each field could potentially  end  with  a
       different delimiter, as multiple	delimiters can be specified.

       Normally	 does  not need	to be called explicitly, since it is called by
       xt_dsv_line_new().

EXAMPLES
       xt_dsv_line_t  *line = xt_dsv_line_new();

       while ( xt_dsv_line_read(line, stdin, "t") != EOF )
       {
	   xt_dsv_line_write(line, stdout);
	   xt_dsv_line_free(line);
       }

       // Reinitialize
       xt_dsv_line_init(line);

SEE ALSO
       xt_dsv_line_new(3),	xt_dsv_line_free(3),	  xt_dsv_line_read(3),
       xt_dsv_line_write(3),	 xt_dsv_line_copy(3),	 xt_dsv_read_field(3),
       xt_dsv_read_field_malloc(3),			 xt_dsv_skip_field(3),
       xt_dsv_skip_rest_of_line(3)

							   xt_dsv_line_init(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xt_dsv_line_init&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help