Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <ndbm.h>
int dbm_clearerr(DBM *db);
The dbm_clearerr() function clears the error condition of the database. The argument db is a handle to a database previously obtained by dbm_open(). Note that this does not correct any problems with the database due to previous failures. It simply allows dbm_ operations to proceed. The database may be in an inconsistent or damaged state.
Special behavior for z/OS® UNIX Services: In a multithreaded environment, the database error indicator is global to all threads using the database handle. Thus, clearing the error indicator affects all threads using the database handle.
The return value is unspecified by X/Open.
If successful, dbm_clearerr() returns 0.