Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. void printBook(book_t *current){
  2. printf("Tytul: %s \n", current->title);
  3. printf("Autor/autorzy: %s ", current->author->name);
  4. printf("%s", current->author->surname);
  5. if(!strstr(current->author->surname, "\n")){
  6. printf("\n");
  7. }
  8. printf("Liczba stron: %d\n", current->pages);
  9. printf("Rok wydania: %d \n", current->yearOfRelease);
  10. printf("Data wypozyczenia (rrrr-mm-dd), jesli ksiazka nie jest wypozyczona to '0': %s\n", current->date);
  11. printf("Osoba wypozyczajaca, jesli ksiazka nie jest wypozyczona to '0': %s ", current->borrower->name);
  12. printf("%s ", current->borrower->surname);
  13. printf("\n");
  14. printf("---------------------------------------------------------------------------------------------");
  15. //printf("%d", moreThanHalfYear(current->date));
  16. printf("\n");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement