From 09d532c33e2e91c7ed944c11157682c320adc925 Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Thu, 27 Nov 2025 14:09:08 -0800 Subject: [PATCH] fix lab09 --- lab09/lab9.c | 3 ++- lab09/output.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lab09/lab9.c b/lab09/lab9.c index 30e1612..522c4e1 100644 --- a/lab09/lab9.c +++ b/lab09/lab9.c @@ -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; diff --git a/lab09/output.txt b/lab09/output.txt index a210e76..776e6d6 100644 --- a/lab09/output.txt +++ b/lab09/output.txt @@ -1 +1 @@ -apple,banana,blackberry,blueberry,cherry,grape,kiwi,lemon,mango,orange,peach,pear,pineapple,raspberry,strawberry,watermelon +101,158,205,219,317,347,412,501,516,604,629,732,739,813,826,945,32767