string nextkey(string key)
This returns the key in database that follows the key 'key' key. This is of course used to iterate over all keys in the database.
// Write the contents of the database for(key=gdbm->firstkey(); k; k=gdbm->nextkey(k)) write(k+":"+gdbm->fetch(k)+"\n");