Question: / * * * * * * * * * * * * * * * * * * * * * * * *

/**************************************************************************************************************************************************************
*48430 Fundamentals of C Programming -
void add_book(book_t booklist[], int *listsize ){
if(*listsize >= MAX_LIBRARY_SIZE){
printf("library is full!
");
return;
}
book_t new_book;
printf("Title: ");
fgets(new_book.title, MAX_TITLE_SIZE, stdin);
new_book.title[strcspn(new_book.title, "
")]=0;
printf(">Author: ");
fgets(new_book.author, MAX_AUTHOR_SIZE, stdin);
new_book.author[strcspn(new_book.author, "
")]=0;
printf(">ISBN: ");
fgets(new_book.isbn, MAX_ISBN_SIZE, stdin);
new_book.isbn[strcspn(new_book.isbn, "
")]=0;
printf(">Publication_date(month): ");
scanf("%u", &new_book.publication_date.month);
printf(">Publication_date(year): ");
scanf("%u", &new_book.publication_date.year);
getchar();
printf(">Genre: >
");
fgets(new_book.genre, MAX_GENRE_SIZE, stdin);
new_book.genre[strcspn(new_book.genre, "
")]=0;
booklist[*listsize++]= new_book;Your program produced too much output.
DIFF SPLIT DIFF YOUR OUTPUT EXPECTED
Library Management System
Add book
Delete last book
Display book list
Save the book list to the da
/ * * * * * * * * * * * * * * * * * * * * * * * *

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!