]>
git.saurik.com Git - apple/libc.git/blob - include/search.h
aa21d8b75725b2b99cd288ee3103df5eab038730
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>
13 #include <sys/types.h>
15 typedef struct entry
{
31 #ifdef _SEARCH_PRIVATE
34 struct node
*llink
, *rlink
;
38 struct que_elem
*next
;
39 struct que_elem
*prev
;
46 ENTRY
*hsearch(ENTRY
, ACTION
);
47 void insque(void *, void *);
48 void *lfind(const void *, const void *, size_t *, size_t,
49 int (*)(const void *, const void *));
50 void *lsearch(const void *, void *, size_t *, size_t,
51 int (*)(const void *, const void *));
53 void *tdelete(const void * __restrict
, void ** __restrict
,
54 int (*)(const void *, const void *));
55 void *tfind(const void *, void * const *,
56 int (*)(const void *, const void *));
57 void *tsearch(const void *, void **, int (*)(const void *, const void *));
58 void twalk(const void *, void (*)(const void *, VISIT
, int));
61 #endif /* !_SEARCH_H_ */