Moved fflush from main.c to main.h