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

FreeBSD Manual Pages

  
 
  

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

NAME
       xt_ff_dsv_line_new() - Create a new generic tabular data	object

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

SYNOPSIS
       xt_ff_dsv_line_t	 *xt_ff_dsv_line_new(void)

ARGUMENTS
       None

DESCRIPTION
       Allocate	   and	 initialize   a	  xt_ff_dsv_line_t   structure.	   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	delim-
       iters can be specified.

RETURN VALUES
       Pointer to a xt_ff_dsv_lint_t object, or	NULL if	malloc() failed.

EXAMPLES
       xt_ff_dsv_line_t	 *line = xt_ff_dsv_line_new();

       while ( xt_ff_dsv_line_read(line, stdin,	"t") !=	EOF )
       {
	   xt_ff_dsv_line_write(line, stdout);
	   xt_ff_dsv_line_free(line);
       }

SEE ALSO
       xt_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)

							 xt_ff_dsv_line_new(3)

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

home | help