Declaration:
int fprintf(unsigned long stream, char format[], ... );
Description
Writes formatted output to a stream.
fprintf accepts a series of arguments, applies to each of them a format specifier contained in the format string pointed to by format and outputs the formatted data to a stream. There must be the same number of format specifiers as the arguments.
Note. Your arguments passed to this function shall match the format line. In case of mismatch, the <%CM%> program may crash, because it cannot check the correspondence between the format string and parameters passed. For more, see description of format specifiers for printf.
Returned Value
fprintf returns the number of bytes that were output. In the event of error, it returns EOF.
|