BOOTSTRAP (kutils) functions
LIBRARY ROUTINE
khash_value - polynomial conversion
LIBRARY CALL
unsigned long int khash_value(
char *data,
ssize_t length)
INPUT
- data - the data in which to create the has for
- length - the length of the hash to be used. If -1,
then the length is computed using kstrlen().
OUTPUT
none
RETURN VALUE
returns the associated hash for the given data.
DESCRIPTION
polynomial conversion ignoring overflows
[this seems to work remarkably well, in fact better
then the ndbm hash function. Replace at your own risk]
use: 65599 nice.
65587 even better.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
Integrated into Khoros 2.0 (MY) 4/93
FILES
$BOOTSTRAP/objects/library/kutils/src/hash.c
SEE ALSO
kutils(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.