From: Michael Göhler Date: Sun, 17 Aug 2014 00:23:01 +0000 (+0200) Subject: added debug output to main application X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=eb9313d1407c4b7190d0f43e03bff5d94885a82b;p=smdp.git added debug output to main application --- 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; + } }