1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:17:47 +00:00

LibC: Implement twalk

This commit is contained in:
Tim Schumacher 2021-10-14 20:46:26 +02:00 committed by Brian Gianforcaro
parent 7448626bae
commit 4b423a5ec7
3 changed files with 145 additions and 0 deletions

View file

@ -8,7 +8,15 @@
__BEGIN_DECLS
typedef enum {
preorder,
postorder,
endorder,
leaf,
} VISIT;
void* tsearch(const void*, void**, int (*)(const void*, const void*));
void* tfind(const void*, void* const*, int (*)(const void*, const void*));
void twalk(const void*, void (*)(const void*, VISIT, int));
__END_DECLS