fixes csv headers

This commit is contained in:
SuperNovaa41 2024-01-29 12:19:14 -05:00
parent e9014258a8
commit 43e69fa342

View File

@ -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");