]>
git.saurik.com Git - apple/libc.git/blob - include/search.h
2 * Written by J.T. Conklin <jtc@netbsd.org>
5 * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $
6 * $FreeBSD: src/include/search.h,v 1.10 2002/10/16 14:29:23 robert Exp $
12 #include <sys/cdefs.h>
14 #include <sys/_types/_size_t.h>
16 typedef struct entry
{
32 #ifdef _SEARCH_PRIVATE
35 struct node
*llink
, *rlink
;
39 struct que_elem
*next
;
40 struct que_elem
*prev
;
47 ENTRY
*hsearch(ENTRY
, ACTION
);
48 void insque(void *, void *);
49 void *lfind(const void *, const void *, size_t *, size_t,
50 int (*)(const void *, const void *));
51 void *lsearch(const void *, void *, size_t *, size_t,
52 int (*)(const void *, const void *));
54 void *tdelete(const void * __restrict
, void ** __restrict
,
55 int (*)(const void *, const void *));
56 void *tfind(const void *, void * const *,
57 int (*)(const void *, const void *));
58 void *tsearch(const void *, void **, int (*)(const void *, const void *));
59 void twalk(const void *, void (*)(const void *, VISIT
, int));
62 #endif /* !_SEARCH_H_ */