Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Examples  

hashfunc.c File Reference

Go to the source code of this file.

Functions

Index Hash1 (const char *Key, int TableSize)
 Calculate an index from a string of charecters.

Index Hash2 (const char *Key, int TableSize)
 Calculate an index from a string of charecters.

Index Hash3 (const char *Key, int TableSize)
 Calculate an index from a string of charecters.


Detailed Description

This file contains various hash functions.

Definition in file hashfunc.c.


Function Documentation

Index Hash1 const char *    Key,
int    TableSize
 

Calculate an index from a string of charecters.

Parameters:
Key Pointer to a zero terminated string of characters.
TableSize 'TableSize-1' represents the maximum value possible for the index. In other words, the value of the returned index will be such as: 0 <= index <= (TableSize-1).
Examples:
test_hash_func.c.

Definition at line 14 of file hashfunc.c.

Index Hash2 const char *    Key,
int    TableSize
 

Calculate an index from a string of charecters.

Parameters:
Key Pointer to a zero terminated string of characters.
TableSize 'TableSize-1' represents the maximum value possible for the index. In other words, the value of the returned index will be such as: 0 <= index <= (TableSize-1).
Examples:
test_hash_func.c.

Definition at line 34 of file hashfunc.c.

Index Hash3 const char *    Key,
int    TableSize
 

Calculate an index from a string of charecters.

Parameters:
Key Pointer to a zero terminated string of characters.
TableSize 'TableSize-1' represents the maximum value possible for the index. In other words, the value of the returned index will be such as: 0 <= index <= (TableSize-1).
Examples:
test_hash_func.c.

Definition at line 47 of file hashfunc.c.


Generated on Thu Apr 3 16:23:45 2003 for Common_C_libraries by doxygen1.3-rc1