BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

khash_init - initializes a hash array

LIBRARY CALL

khash *khash_init(
   int    type,
   size_t size)

INPUT

OUTPUT

none

RETURN VALUE

the newly initialized hash structure, or NULL on failure

DESCRIPTION

Initializes a hash array, which can then be used to add, delete, check, and retrieve data associated with hash entries.

The hash utilities, including khash_add(), support hash arrays of a variety of data types. The data type of the array being used is specified with the 'type' parameter; supported data types include:

KBYTE - hash array of characters KUBYTE - hash array of unsigned characters KSHORT - hash array of short integers KUSHORT - hash array of unsigned short integers KINT - hash array of integers KUINT - hash array of unsigned integers KLONG - hash array of long integers KULONG - hash array of unsigned long integers KFLOAT - hash array of floating point numbers KDOUBLE - hash array of double precision numbers KSTRING - hash array of strings KSTRUCT - hash array of pointers to structures KLOGICAL - hash array of TRUE/FALSE values

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/hash.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.