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

FreeBSD Manual Pages

  
 
  

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

NAME
       xt_ff_write() - Write a fixed number of bytes to	a fast file stream

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

SYNOPSIS
       size_t  xt_ff_write(xt_ff_t *stream, void * ptr,
       size_t size, size_t nmemb)

ARGUMENTS
       stream  Pointer to an xt_ff_t structure
       ptr     Memory location from which data are written
       size    Size of one object being	read
       nmemb   Number of objects to read

DESCRIPTION
       xt_ff_write(3)  writes a	fixed number of	bytes (size * nmemb) to	stream
       from address ptr, which should point to an object (if nmemb  ==	1)  or
       array of	"nmemb"	objects	of size	"size".

RETURN VALUES
       The number of objects (not bytes) successfully written

EXAMPLES
       my_type_t   list[NUM_OBJECTS];
       xt_ff_t	   *stream;

       stream =	xt_ff_open("myfile", O_RDONLY);
       xt_ff_write(stream, list, sizeof(my_type_t), NUM_OBJECTS);

SEE ALSO
       xt_ff_read(2), xt_ff_open(3), write(2)

								xt_ff_write(3)

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

home | help