COHERENT manpages

This page displays the COHERENT manpage for dbm_nextdbm() [Retrieve the next key from an NDBM data base].

List of available manpages
Index


dbm_nextdbm() -- NDBM Function (libgdbm)

Retrieve the next key from an NDBM data base
#include <ndbm.h>
datum dbm_nextkey (database)
DBM *database;

Function dbm_nextkey()  retrieves the next key from the  data base to which
database  points.  database  must  first have  been  opened via  a call  to
function dbm_open(), and had the first  key retrieved from it via a call to
function dbm_firstkey().

dbm_nextkey()  returns the  address  of the  record it  has retrieved.   If
something  has gone  wrong, it  returns  NULL.  If  the last  record within
database has  already been retrieved, it returns a  record whose field dptr
is NULL.

See Also


Notes

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