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

Functions

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

Function Documentation

◆ putc()

int putc ( int  character,
FILE stream 
)

Write character to stream.

Writes a character to the stream and advances the position indicator. The character is written at the position indicated by the internal position indicator of the stream, which is then automatically advanced by one.

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 is set.