diff options
Diffstat (limited to 'booki.c')
| -rw-r--r-- | booki.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -116,6 +116,14 @@ struct Book parse_book(char* current_pos) { struct es language = parse_string(current_pos, &new_pos); book.language = language; current_pos = new_pos; + } else if (strncmp(attr, "isbn", 4) == 0) { + struct es isbn = parse_string(current_pos, &new_pos); + book.isbn = isbn; + current_pos = new_pos; + } else if (strncmp(attr, "translator", 10) == 0) { + struct es translator = parse_string(current_pos, &new_pos); + book.translator = translator; + current_pos = new_pos; } // go to (and then past) the newline |
