MicrOS
fputc.c File Reference
#include "../stdio.h"

Functions

int fputc (int character, FILE *stream)
 Write character to stream. More...
 

Function Documentation

◆ fputc()

int fputc ( int  character,
FILE stream 
)

Write character to stream.

Writes a character to the stream and advances the position indicator.

Parameters
characterThe int promotion of the character to be written.
streamPointer to a FILE object that identifies the stream to be closed.
Returns
On success, the character written is returned. If a writing error occurs, EOF is returned and the error indicator (ferror) is set.