putchar

Full prototype:

int putchar(int);  

Purpose and Notes:

Equivalent to putc (so macro) except that it only writes to stdout and thus no second argument is needed. It only needs the character you want to send to stdout as an int (because of non-ascii characters such as EOF).

Returns:

int- On successful writes to stdout it returns the charater written to stdout. On failure it returns EOF and sets error indicators for stdout.

Argument 1:

int- The character (including EOF thus int instead of char) you want to write to stdout.

Example 1
  1    FILLER SOURCE CODE
FILLER TERMINAL