| book-read-write.h - Header filen book-read-write.h. | Lektion 10 - slide 23 : 28 Program 3 |
#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);