From a85558e118cda0bdec393a16a1898179c443cafe Mon Sep 17 00:00:00 2001 From: SirTalksalot75 <132705706+SirTalksalot75@users.noreply.github.com> Date: Mon, 22 Apr 2024 14:01:18 +0200 Subject: [PATCH] Update main.c changed close_file Function changed ERROR to PANIC --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 6617ed8..f96edf3 100644 --- a/src/main.c +++ b/src/main.c @@ -42,7 +42,7 @@ void setup(void) void close_file(void) { - fclose(input); + fclose(yyin); } int main(void) { @@ -53,7 +53,7 @@ int main(void) { if (NULL == input) { - ERROR("File couldn't be opened!"); + PANIC("File couldn't be opened!"); } yyin = input;