axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
typedef unsigned int(* axlHashFunc)(axlPointer key)

Hashing function used by the axl hash module to implement translation from an user defined pointer into a number that should be as much unique as possible.

keyUser defined data that represents the key for a data to be stored into the hash. The value provided here usually is an string but it could be any other data used as key.
The function must return a positive value that will be used to index the content into the hash table. It doesn't matter if the number is greater than the table size. A modulo operation is applied to the result.