summaryrefslogtreecommitdiffabout
path: root/doc/grecs_parse.3
Side-by-side diff
Diffstat (limited to 'doc/grecs_parse.3') (more/less context) (ignore whitespace changes)
-rw-r--r--doc/grecs_parse.38
1 files changed, 3 insertions, 5 deletions
diff --git a/doc/grecs_parse.3 b/doc/grecs_parse.3
index 2abc417..dff6759 100644
--- a/doc/grecs_parse.3
+++ b/doc/grecs_parse.3
@@ -149,13 +149,11 @@ screen:
int
main(int argc, char **argv)
{
- struct grecs_node *tree, *node;
+ struct grecs_node *tree;
tree = grecs_parse(argv[1]);
- for (node = tree; node; node = node->next) {
- grecs_format_node(node, GRECS_NODE_FLAG_DEFAULT, stdout);
- fputc('\n', stdout);
- }
+ grecs_format_node(tree, GRECS_NODE_FLAG_DEFAULT, stdout);
+ fputc('\\n', stdout);
grecs_tree_free(tree);
exit(0);
}

Return to:

Send suggestions and report system problems to the System administrator.