This commit is contained in:
SowinskiBraeden committed 2024-10-10 22:26:38 -07:00
1 parent 8d0f69f390
commit 75baef6e10
7 files changed
+5 -5

No files matched your search

+1 -2
View File
@@ -12,7 +12,6 @@ typedef struct {
bool alternate;
} CSV_LINE;
// Dumbass me set this to size_t earlier, forgot that size_t is unsigned and I can't return -1 on failure
int count_lines(char data_dir[]) {
FILE *stream = fopen(data_dir, "r");
if (!stream) {
@@ -72,4 +71,4 @@ CSV_LINE *csvReader(char data_dir[], size_t size) {
fclose(stream);
return lines;
}
}