![]() ![]() ![]() | io/book-read-write.h - Header filen book-read-write.h. | Lektion 13 - slide 28 : 32 Program 5 |
#define PROTECTED_SPACE '@' #define PROTECTED_NEWLINE '$' #define BUFFER_MAX 1000 struct book { char *title, *author, *publisher; int publishing_year; int university_text_book; }; typedef struct book book; book *make_book(const char *title, const char *author, const char *publisher, int year, int text_book); void prnt_book(book *b); void print_book(book *b, FILE *ofp); book *read_book(FILE *ifp);