summaryrefslogtreecommitdiff
path: root/c/tree/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/tree/main.c')
-rw-r--r--c/tree/main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/c/tree/main.c b/c/tree/main.c
index 073167e..0926555 100644
--- a/c/tree/main.c
+++ b/c/tree/main.c
@@ -11,12 +11,7 @@ void printChild(const regfile * head)
regfile * scan = head->next;
while (scan != NULL) {
- printf("%s\tlevel: %d\tname length: %lu\tfile or dir: ",scan->node->text,
- scan->node->level, scan->node->len);
- if (scan->node->fod)
- printf("dir\n");
- else
- printf("file\n");
+ printf("%s\n",scan->node->text);
scan = scan->next;
}
}
@@ -25,7 +20,7 @@ int main()
{
regfile head;
- getfile(&head,".");
+ getfile(&head,"..");
printChild(&head);