mirror of
https://github.com/RevCurtisP/C02.git
synced 2026-04-19 03:20:39 +00:00
Added flush of stdout and stderr when exiting with an error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user