--- src/lib/libc/stdlib/tfind.c 2005/11/20 12:37:49 1.4 +++ src/lib/libc/stdlib/tfind.c 2005/11/24 17:18:30 1.5 @@ -20,10 +20,15 @@ #include #include -/* find a node, or return 0 */ +/* + * find a node, or return 0 + * + * Parameters: + * vkey: key to be found + * vrootp: address of the tree root + */ void * -tfind(const void *vkey, /* key to be found */ - void **vrootp, /* address of the tree root */ +tfind(const void *vkey, void **vrootp, int (*compar)(const void *, const void *)) { node_t **rootp = (node_t **)vrootp;