| putchar | Function (Macro)

stdio.h

#define putchar fputchar

Outputs a character to the screen in TTY mode.

Outputs a character c to the screen in TTY mode. This means the following:

- The current print position will be moved in the text line after printing the last character in the screen line;
- after printing the last character in the last screen line, the screen will scroll upwards;
- characters '\n' will be translated to "next line" (and this is the only control code which has a special implementation);
- the current print position will be updated after the character is printed.

All TI fonts are supported.
putchar returns the character c (ANSI C proposes returning EOF in a case of error, but printing on TIOS can not fail).
Note: In ANSI C, `putchar(c)` is equal as `putc(c, stdout)`, so it can be redirected using freopen. This is not possible here, because stdout is not implemented as a file stream.

Uses: fputchar