![]() |
![]()
| ![]() |
![]()
NAMExt_ff_puts() - Print a string to a fast file stream LIBRARY#include <xtend/fast-file.h> -lxtend SYNOPSISint xt_ff_puts(xt_ff_t *stream, const char *string) ARGUMENTSstring A null-terminated string stream Pointer to an xt_ff_t structure opened with xt_ff_open(3) DESCRIPTIONxt_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 VALUESA non-negative integer on success, EOF on failure EXAMPLESxt_ff_t *outstream; char *buff; if ( (outstream = xt_ff_open(outfilename, O_WRONLY|O_CREAT|O_TRUNC)) == NULL ) { SEE ALSOfputs(3), xt_ff_gets(3), xt_ff_open(3), xt_ff_close(3), xt_ff_putc(3), xt_ff_printf(3)
|