From eb9313d1407c4b7190d0f43e03bff5d94885a82b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Sun, 17 Aug 2014 02:23:01 +0200 Subject: [PATCH] added debug output to main application --- tmp.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tmp.c b/tmp.c index bcdfeed..b908834 100644 --- a/tmp.c +++ b/tmp.c @@ -25,5 +25,21 @@ int main(int argc, char *argv[]) { } doc = markdown_load(input); + + // test line/page load + int cp = 0, cl = 0; + page_t *page = doc->page; + line_t *line; + while(page) { + cp++; + line = page->line; + cl = 0; + while(line) { + cl++; + line = line->next; + } + printf("page %i: %i lines\n", cp, cl); + page = page->next; + } } -- 2.20.1