Back to index

glibc  2.9
Functions
search.h File Reference
#include <misc/search.h>

Go to the source code of this file.

Functions

 libc_hidden_proto (hcreate_r) libc_hidden_proto(hdestroy_r) libc_hidden_proto(hsearch_r) libc_hidden_proto(lfind) extern void __hdestroy(void)
void * __tsearch (__const void *__key, void **__rootp, __compar_fn_t compar)
void * __tfind (__const void *__key, void *__const *__rootp, __compar_fn_t compar)
void * __tdelete (__const void *__key, void **__rootp, __compar_fn_t compar)
void __twalk (__const void *__root, __action_fn_t action)
void __tdestroy (void *__root, __free_fn_t freefct)

Function Documentation

void* __tdelete ( __const void *  __key,
void **  __rootp,
__compar_fn_t  compar 
)

Here is the caller graph for this function:

void __tdestroy ( void *  __root,
__free_fn_t  freefct 
)

Definition at line 649 of file tsearch.c.

{
  node root = (node) vroot;

  CHECK_TREE (root);

  if (root != NULL)
    tdestroy_recurse (root, freefct);
}
void* __tfind ( __const void *  __key,
void *__const __rootp,
__compar_fn_t  compar 
)

Here is the caller graph for this function:

void* __tsearch ( __const void *  __key,
void **  __rootp,
__compar_fn_t  compar 
)
void __twalk ( __const void *  __root,
__action_fn_t  action 
)

Here is the caller graph for this function: