From 43e69fa3422c41b03f828dce1ace2f0298e64367 Mon Sep 17 00:00:00 2001 From: SuperNovaa41 Date: Mon, 29 Jan 2024 12:19:14 -0500 Subject: [PATCH] fixes csv headers --- src/csv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csv.c b/src/csv.c index b1d9d92..504142f 100644 --- a/src/csv.c +++ b/src/csv.c @@ -112,7 +112,7 @@ void write_to_file(book_t* book) if (0 != file_exists) { file = fopen(FILE_NAME, "w"); // write the csv headers to the file since we're making it - fprintf(file, "id,isbn,title,authors,imageurl,year of publication,page length\n"); + fprintf(file, "id,isbn,title,authors,imageurl,year-of-publication,page-length\n"); book_id = 1; } else { file = fopen(FILE_NAME, "a");