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
-
character | The int promotion of the character to be written. |
stream | Pointer 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.