#include <db.h> int DBcursor->cmp(DBC *DBcursor, DBC *other_cursor, int *result, u_int32_t flags);
The DBcursor->cmp()
method compares two cursors for equality. Two cursors are equal if and only if they are positioned on the same item in the same database.
The DBcursor->cmp()
method returns a non-zero error value on failure and 0 on success.
The other_cursor parameter references another cursor handle that will be used as the comparator.
If the call is successful and both cursors are positioned on the same item, result is set to zero. If the call is successful but the cursors are not positioned on the same item, result is set to a non-zero value. If the call is unsuccessful, the value of result should be ignored.
The DBcursor->cmp()
method may fail and return one of the following non-zero errors: