COHERENT manpages

This page displays the COHERENT manpage for gdbm_exists() [Check whether a GDBM data base contains a given record].

List of available manpages
Index


gdbm_exists() -- GDBM Function (libgdbm)

Check whether a GDBM data base contains a given record
#include <gdbm.h>
int gdbm_exists(database, key)
GDBM_FILE database;
datum key;

Function gdbm_exists() checks whether  the GDBM data base to which database
points contains a  record with the key to which  key points.  database must
have been returned by a call to gdbm_open().

If database  contains key, gdbm_exists()  returns a value  other than zero;
otherwise, it returns zero.

See Also


Notes

For  a statement  of copyright  and  permissions on  this routine,  see the
Lexicon entry for libgdbm.