ffputs(3)

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

SYNOPSIS

int     ffputs(const char *string, ffile_t *stream)

ARGUMENTS
string      A null-terminated string
stream      Pointer to an ffile_t structure opened with ffopen()

DESCRIPTION
ffputs() writes a null-terminated string to the given ffile_t stream. It is fnuctionally equivalent to fputs() with FILE.

RETURN VALUES
A non-negative integer on success, EOF on failure

EXAMPLES
ffile_t *outstream;
char    *buff;
if ( (outstream = ffopen(outfilename, O_WRONLY|O_CREAT|O_TRUNC)) == NULL )
{
    fprintf(stderr, "Cannot open %s for writing.n", outfilename);
    exit(EX_NOINPUT);
}
ffputs("Hello, world!n", outstream);
ffclose(outstream);

SEE ALSO
fputs(3), ffgets(3), ffopen(3), ffclose(3), ffputc(3), ffprintf(3)