BOOTSTRAP (klibdb) functions


LIBRARY ROUTINE

kdbm_fetch - Find a key and return the associated data.

LIBRARY CALL

kdatum kdbm_fetch(
     kdbm *dbf,
     kdatum key)

INPUT

OUTPUT

none

RETURN VALUE

The data associated with the specified key. If the key is not a part of the database, the returned data.dsize and data.dptr will be 0 and NULL respectively

DESCRIPTION

Look up a given KEY and return the information associated with that KEY. The pointer in the structure that is returned is a pointer to dynamically allocated memory block.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/klibdb/src/kdbm.c

SEE ALSO

klibdb(3)

COPYRIGHT

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