1 /* $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $ */
5 * Written by J.T. Conklin <jtc@netbsd.org>
12 #include <sys/cdefs.h>
13 #include <sys/_types.h>
15 #ifndef _SIZE_T_DECLARED
16 typedef __size_t size_t;
17 #define _SIZE_T_DECLARED
20 typedef struct entry {
36 #ifdef _SEARCH_PRIVATE
39 struct node *llink, *rlink;
46 ENTRY *hsearch(ENTRY, ACTION);
47 void *tdelete(const void * __restrict, void ** __restrict,
48 int (*)(const void *, const void *));
49 void *tfind(const void *, void **, int (*)(const void *, const void *));
50 void *tsearch(const void *, void **, int (*)(const void *, const void *));
51 void twalk(const void *, void (*)(const void *, VISIT, int));
54 #endif /* !_SEARCH_H_ */