FPRINTF - formatted output to a file.

(ANSI Standard)

Usage:

#include <stdio.h>
i = fprintf(f, control [, arg1, arg2, ...]);

Where:

FILE *f;
is the file to which the output should be written.
const char *control;
is a "printf" control string.
arg1, arg2, ...
are the values to be printed out.
int i;
is the number of characters that were output. If a write error occurred, a negative number is returned.

Description:

"fprintf" writes to the output file pointed to by "f". "fprintf" converts, formats, and prints its arguments under control of the string "control". For a full description of the formatting used by "fprintf", see the documentation for "printf".

See Also:

expl c lib fopen

expl c lib fclose

Copyright © 1996, Thinkage Ltd.