Update main.c

Added a second getchar() in fatal_error and changed its function type to void