void __far perror(const char __near *s);
void __far p_COM_error_f(const char __far *s);
This function outputs to stderr the error message that corresponds to global variable errno.
stderr which is the same as stdout becomes P0 which is SFR. It is output to SFR using the putchar function.
The message that is output is as follows.
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. |