void add_book(BOOK database)
while(database[i].number!=0 && i<MAX)
printf("There is no more room in the database\n");
printf("\nBook Number (greater than 0):");
while (database[i].number <=0);
printf("Is this book on loan (y or n)");
This is a function in my program that adds a book to the database
When it gets to Book name it skips the gets part and moves on the the nest printf. i cant fix it i have tried everything i know.