putchar


Write characters to SFR

[Classification]

Standard library

[Syntax]

#include <stdio.h>

int __far putchar(int c);

[Return value]

The character c is returned.

[Description]

This function writes character c to P0 which is SFR. An error check is not performed for writing.

[Caution]

-

To change stdout, replace this function. Note that replacing the putchar function will also change stderr. To change the output destination of stderr to something other than stdout, replace the perror function.