fputc

Full prototype:

int fputc(int c, FILE*);  

Purpose and Notes:

Writes the character passed in as the first argument (including EOF thus int instead of char) to the stream associated with the FILE* passed in as the second argument at the current position of the stream.

Returns:

int-Returns the character passed in to the stream if successful. If an error occured writing to the stream the error indicator is set for the stream and EOF is returned.

Argument 1:

int-A character to be written to the stream (including EOF thus int instead of char).

Argument 2:

FILE*-A file pointer to the stream you want to write to.

Example 1
  1    FILLER SOURCE CODE
FILLER TERMINAL