Skip to content

Commit

Permalink
fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed May 20, 2024
1 parent dd2f6c7 commit f8373cc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/dirtree.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
/*
* In memory, create tree of paths, where each node is path element. The tree
* starts with root '/', the leaves are files. The three can look e.g. like
* this:
* In memory, create tree from a set of file paths, where each node is path
* element.
* The tree starts with root '/', the leaves are files. The tree can look
* e.g. like this:
*
* "/"
* / | \
* / | \
* "foo/" "f.txt" "bar/"
* / \
* "a.c" "b.c"
* / \ |
* "a.c" "b.c" "c.c"
*
* Populate the tree with given paths and print the leaves (no particular
* order). Then free the allocated memory.
*
* You can also print non-leaf nodes as well and use indenting based on the
* three level.
* tree level.
*/

#include <stdio.h>
Expand Down

0 comments on commit f8373cc

Please sign in to comment.