Program Listing for File search.h
↰ Return to documentation for file (rcsw/algorithm/search.h
)
#pragma once
/*******************************************************************************
* Includes
******************************************************************************/
#include "rcsw/rcsw.h"
/*******************************************************************************
* API Functions
******************************************************************************/
BEGIN_C_DECLS
RCSW_API int bsearch_iter(const void * a,
const void * e,
int (*cmpe)(const void * e1, const void * e2),
size_t el_size,
int low,
int high);
RCSW_API int bsearch_rec(const void * arr,
const void * e,
int (*cmpe)(const void * e1, const void * e2),
size_t elt_size,
int low,
int high);
END_C_DECLS