diff options
Diffstat (limited to 'man/man3')
-rw-r--r-- | man/man3/cmark.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index bffe73d..283b9cc 100644 --- a/man/man3/cmark.3 +++ b/man/man3/cmark.3 @@ -1,4 +1,4 @@ -.TH cmark 3 "February 02, 2016" "LOCAL" "Library Functions Manual" +.TH cmark 3 "March 24, 2016" "LOCAL" "Library Functions Manual" .SH NAME .PP @@ -14,7 +14,7 @@ Simple Interface .PP Convert \f[I]text\f[] (assumed to be a UTF\-8 encoded string with length -\f[I]len\f[] from CommonMark Markdown to HTML, returning a +\f[I]len\f[]) from CommonMark Markdown to HTML, returning a null\-terminated, UTF\-8\-encoded string. .SS @@ -109,7 +109,7 @@ to assign. \fIvoid\f[] \fBcmark_node_free\f[](\fIcmark_node *node\f[]) .PP -Frees the memory allocated for a node. +Frees the memory allocated for a node and any children. .SS Tree Traversal @@ -543,7 +543,7 @@ Streaming interface: .nf \f[C] cmark_parser *parser = cmark_parser_new(CMARK_OPT_DEFAULT); -FILE *fp = fopen("myfile.md", "r"); +FILE *fp = fopen("myfile.md", "rb"); while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) { cmark_parser_feed(parser, buffer, bytes); if (bytes < sizeof(buffer)) { |