SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English INDEP - TXT_#?
----------------------------------------------------------------------------
NAME
txt_quickhash() - Allows to hash any NULL term. string.
SYNOPSIS
hash = txt_quickhash(string);
ULONG txt_quickhash(UBYTE *);
FUNCTION
This function allows to hash a string using very simple
and yet collision prone algorithm. This func. is great
for hashing ASCII(1-127) if strengh of hash in not the
goal.
INPUTS
string - NULL terminated string.
RETURNS
Returns unique hash value ;-) or 0 if string is NULL.
BASES
None.
NOTES
Warning! This algorithm is weird and likes to wear crazy
hat!
Case insensitive version of this routine exists and its
called 'txt_quickihash()'.
SEE ALSO
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
|