Everything

putc


Outputs one character to a stream input/output file.

[Format]

#include <stdio.h>

long putc (long c, FILE *fp);

[Parameters]

c Character to be output

fp File pointer

[Return values]

Normal: Output character

Abnormal: EOF

[Remarks]

When a write error occurs, the error indicator for that file is set.

The putc function outputs character c to the stream input/output file indicated by file pointer fp.

The putc function normally returns c, the output character, but returns EOF when an error occurs.