COHERENT manpages

This page displays the COHERENT manpage for fetch() [Fetch a record from a DBM data base].

List of available manpages
Index


fetch() -- DBM Function (libgdbm)

Fetch a record from a DBM data base
#include <dbm.h>
datum fetch (key)
datum key;

Function fetch()  retrieves the record  with key from  the currently opened
DBM data base.  The data base  must first have opened by a call to function
dbminit().

fetch()  returns  a pointer  to  the  retrieved record.   If  no record  is
available, or  if an error occurred, field dptr  within the returned record
is initialized to NULL.

See Also


Notes

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