BOOTSTRAP (klibdb) functions


LIBRARY ROUTINE

kdbm_write - Simple database write routine

LIBRARY CALL

int kdbm_write(
    kdbm   *dbf,
    kdatum key,
    kaddr   data,
    int     num,
    int     type)

INPUT

OUTPUT

none

RETURN VALUE

the number of data points actually written, or -1 upon error

DESCRIPTION

Add a new element to the database. CONTENT is keyed by KEY. The file on disk is updated to reflect the structure of the new database before returning from this procedure. This routine is similar to kdbm_store except that it allows incremental writes to this key in the database.

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.