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

FreeBSD Manual Pages

  
 
  

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

LIBRARY
       #include	<xtend/fast-file.h>
       -lxtend

SYNOPSIS
       int     xt_ff_flush(xt_ff_t *stream)

ARGUMENTS
       stream  Pointer to an xt_ff_t stream

DESCRIPTION
       xt_ff_flush(stream)  writes any buffered	output in stream to the	under-
       lying file descriptor.  This normally happens when the buffer is	 full,
       the  stream  is	closed	using xt_ff_close(stream), or before a seek is
       performed on a stream opened for	writing.

RETURN VALUES
       Return code of the underlying write(2) call -1 if stream	 is  not  open
       for writing

EXAMPLES
       xt_ff_t *stream;

       stream =	xt_ff_open(filename, O_WRONLY|O_CREATE);
       xt_ff_flush(stream);

SEE ALSO
       xt_ff_open(3)

								xt_ff_flush(3)

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

home | help