Table/Lookup

Table/Lookup Utilities. More...

Modules

Macros
Table/Lookup macros.
 

Functions

void * table_lookup (const char *key, const void *table, size_t count, size_t width)
 Using binary search, find entry with key in given table. More...
 
void * table_reverse_lookup (unsigned int value, const void *table, size_t count, size_t width)
 Using binary search, find entry with value in given table. More...
 
void * table_linear_lookup (const char *key, const void *table, size_t count, size_t width)
 Using linear search, find entry with key in given table. More...
 

Detailed Description

Table/Lookup Utilities.

Function Documentation

void* table_linear_lookup ( const char *  key,
const void *  table,
size_t  count,
size_t  width 
)

Using linear search, find entry with key in given table.

void* table_lookup ( const char *  key,
const void *  table,
size_t  count,
size_t  width 
)

Using binary search, find entry with key in given table.

void* table_reverse_lookup ( unsigned int  value,
const void *  table,
size_t  count,
size_t  width 
)

Using binary search, find entry with value in given table.