mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-25 06:31:25 +00:00
Added flush of stdout and stderr when exiting with an error
This commit is contained in:
parent
4bc038a56d
commit
910a807fbc
@ -12,6 +12,7 @@
|
||||
/* Error - Print Input File name & position and exit */
|
||||
void exterr(int errnum) {
|
||||
fprintf(stderr, "Line %d Column %d of File %s\n", curlin, curcol, inpnam);
|
||||
fflush(stdout); fflush(stderr);
|
||||
exit(errnum);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user