Update main.c

changed close_file Function
changed ERROR to PANIC
This commit is contained in:
SirTalksalot75 2024-04-22 14:01:18 +02:00 committed by GitHub
parent 05d603f7ac
commit a85558e118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ void setup(void)
void close_file(void) void close_file(void)
{ {
fclose(input); fclose(yyin);
} }
int main(void) { int main(void) {
@ -53,7 +53,7 @@ int main(void) {
if (NULL == input) if (NULL == input)
{ {
ERROR("File couldn't be opened!"); PANIC("File couldn't be opened!");
} }
yyin = input; yyin = input;