text: #include <stdio.h>
  #include <time.h>
  #include <stdlib.h>
  #include <conio.h>
  #include <ctype.h>
  #include <string.h>
  #include "var.c"
  // v books function
  void viewBooks()
  {
      int found = 0;
      char bookName[MAX_BOOK_NAME] = {0};
      s_BooksInfo addBookInfoInDataBase = {0};
      FILE *fp = NULL;
      int status = 0;
      unsigned int countBook = 1;
      headMessage("VIEW BOOKS DETAILS");
      fp = fopen(FILE_NAME,"rb");
      if(fp == NULL)
      {
          printf("File is not opened\n");
          exit(1);
      }
      if (fseek(fp,FILE_HEADER_SIZE,SEEK_SET) != 0)
      {
          fclose(fp);
          printf("Facing issue while reading file\n");
          exit(1);
      }
      while (fread (&addBookInfoInDataBase, sizeof(addBookInfoInDataBase), 1, fp))
      {
          printf("\n\t\t\tBook Count = %d\n\n",countBook);
          printf("\t\t\tBook id = %u",addBookInfoInDataBase.books_id);
          printf("\n\t\t\tBook name = %s",addBookInfoInDataBase.bookName);
          printf("\t\t\tBook authorName = %s",addBookInfoInDataBase.authorName);
          printf("\t\t\tBook issue date(day/month/year) =  (%d/%d/%d)\n\n",addBookInfoInDataBase.bookIssueDate.dd,
                 addBookInfoInDataBase.bookIssueDate.mm, addBookInfoInDataBase.bookIssueDate.yyyy);
          found = 1;
          ++countBook;
      }
      fclose(fp);
      if(!found)
      {
          printf("\n\t\t\tNo Record");
      }
      printf("\n\n\t\t\tPress any key to go to main menu.....");
      fflush(stdin);
      getchar();
  }