From adde6c296c65013b42ef350ed53e6980ac11bc48 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 31 Oct 2016 09:04:15 -0700 Subject: [PATCH] WIP --- main.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 3edf495..0881ef8 100644 --- a/main.c +++ b/main.c @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2016 Alex Yatskov + * Author: Alex Yatskov + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include #include #include @@ -97,7 +115,8 @@ static void dump_hits(EB_Book* book) { eb_seek_text(book, &hits[i].text); eb_read_text(book, NULL, NULL, NULL, MAX_ENTRY_TEXT, text, &text_length); - puts(eucjp_to_utf8(text)); + const char* text_utf8 = eucjp_to_utf8(text); + (void) text_utf8; } } while (hit_count > 0);