Added flush of stdout and stderr when exiting with an error

This commit is contained in:
Curtis F Kaylor 2020-02-23 14:23:35 -05:00
parent 4bc038a56d
commit 910a807fbc
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}