FreeBSD Manual Pages
xt_ff_puts(3) Library Functions Manual xt_ff_puts(3) NAME xt_ff_puts() - Print a string to a fast file stream LIBRARY #include <xtend/fast-file.h> -lxtend SYNOPSIS int xt_ff_puts(xt_ff_t *stream, const char *string) ARGUMENTS string A null-terminated string stream Pointer to an xt_ff_t structure opened with xt_ff_open(3) DESCRIPTION xt_ff_puts(3) writes a null-terminated string to the given xt_ff_t stream. It is fnuctionally equivalent to fputs(3) with FILE. RETURN VALUES A non-negative integer on success, EOF on failure EXAMPLES xt_ff_t *outstream; char *buff; if ( (outstream = xt_ff_open(outfilename, O_WRONLY|O_CREAT|O_TRUNC)) == NULL ) { fprintf(stderr, "Cannot open %s for writing.n", outfilename); exit(EX_NOINPUT); } xt_ff_puts("Hello, world!n", outstream); xt_ff_close(outstream); SEE ALSO fputs(3), xt_ff_gets(3), xt_ff_open(3), xt_ff_close(3), xt_ff_putc(3), xt_ff_printf(3) xt_ff_puts(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_puts&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>
