SEARCH.H(7) Miscellaneous Information Manual SEARCH.H(7)

search.hsearch tables

#include <search.h>

The <search.h> header provides a type definition, ENTRY , for structure entry which includes the following members:

char    *key
void    *data

and defines and as enumeration data types through type definitions as follows: enum { FIND, ENTER } ACTION; enum { preorder, postorder, endorder, leaf } VISIT;

The type is defined as described in <sys/types.h>.

Each of the following is declared as a function, or defined as a macro, or both. Function prototypes must be provided for use with an ISO C compiler. int hcreate(size_t); void hdestroy(void); ENTRY *hsearch(ENTRY, ACTION); void insque(void *, void *); void *lfind(const void *, const void *, size_t *, size_t, int (*)(const void *, const void *)); void *lsearch(const void *, void *, size_t *, size_t, int (*)(const void *, const void *)); void remque(void *); void *tdelete(const void *, void **, int(*)(const void *, const void *)); void *tfind(const void *, void *const *, int(*)(const void *, const void *)); void *tsearch(const void *, void **, int(*)(const void *, const void *)); void twalk(const void *, void (*)(const void *, VISIT, int ));

None.

None.

hsearch(3) , insque(3) , lsearch(3) , remque(3) , tsearch(3) , <sys/types.h> .

February 1997 posix.fail