Turnstone Operating System
Loading...
Searching...
No Matches
binarysearch.64.c File Reference

binarysearch interface implementation More...

#include <binarysearch.h>

Functions

 MODULE ("turnstone.lib")
 
void * binarysearch (void *list, uint64_t size, uint64_t item_size, void *key, binarysearch_comparator_f cmp)
 binarsearch More...
 

Detailed Description

binarysearch interface implementation

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ binarysearch()

void * binarysearch ( void *  list,
uint64_t  size,
uint64_t  item_size,
void *  key,
binarysearch_comparator_f  cmp 
)

binarsearch

Parameters
[in]listlist to search
[in]sizelist size
[in]item_sizeeach item size in list
[in]keyto search
[in]cmpbinarsearch comparator binarysearch_comparator_f
Returns
found item or null