fix lab09

This commit is contained in:
SowinskiBraeden committed 2025-11-27 14:09:08 -08:00
1 parent 50d8a4dae9
commit 09d532c33e
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -112,7 +112,8 @@ NODE* readFile(char *filepath, int *type, int *count)
else
{
if (fscanf(file, format, data) != EXPECTED_INPUT ||
*type == CHAR && *(char *)data == 'E')
(*type == CHAR &&
*(char *)data == 'E'))
{
free(data);
break;