From bee7013cbe27915a2026b4bbcb0e2f1e15794a72 Mon Sep 17 00:00:00 2001 From: Vladimir Kotal Date: Mon, 20 May 2024 09:20:25 +0200 Subject: [PATCH] add function pointer subtask --- modules/home-assignments/dirtree.md | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/home-assignments/dirtree.md b/modules/home-assignments/dirtree.md index 8f7ab3d3..2d0384c5 100644 --- a/modules/home-assignments/dirtree.md +++ b/modules/home-assignments/dirtree.md @@ -34,6 +34,7 @@ char *paths[] = { ### Bonus tasks +- make the function used for tree traversal generic, i.e. pass in a function pointer - Print also non-leaf nodes via depth first traversal, with each node indented based on its tree depth. E.g: