FreeBSD Manual Pages
xt_ff_gets(3) Library Functions Manual xt_ff_gets(3) NAME xt_ff_gets() - Read a line from a fast file stream LIBRARY #include <xtend/fast-file.h> -lxtend SYNOPSIS char *xt_ff_gets(xt_ff_t *stream, char *string, size_t size) ARGUMENTS string A character array into which the line is read size Size of the character array stream Pointer to an xt_ff_t structure opened with xt_ff_open(3) DESCRIPTION xt_ff_gets(3) writes a line of text from the given xt_ff_t stream. It is functionally equivalent to fgets(3) with FILE. RETURN VALUES A non-negative integer on success, EOF on failure EXAMPLES xt_ff_t *instream; char buff[BUFF_SIZE]; if ( (instream = xt_ff_open(outfilename, O_RDONLY)) == NULL ) { fprintf(stderr, "Cannot open %s for writing.n", outfilename); exit(EX_NOINPUT); } xt_ff_gets(buff, BUFF_SIZE, instream); xt_ff_close(instream); SEE ALSO fgets(3), xt_ff_puts(3), xt_ff_open(3), xt_ff_close(3), xt_ff_putc(3), xt_ff_printf(3) xt_ff_gets(3)
NAME | LIBRARY | SYNOPSIS | ARGUMENTS | DESCRIPTION | RETURN VALUES | EXAMPLES | SEE ALSO
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xt_ff_gets&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>
