/* Returns: < 0 if a is < b = 0 if a is = b  */
int __bt_defcmp(DBT *a, DBT *b) const
/* Returns: < 0 if a is < b = 0 if a is = b  */
int __bt_defcmp(DBT *a, DBT *b) const
{
	register size_t len;
	register u_char *p1, *p2;
	len = MIN(a->size, b->size);
	for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2)
		if (*p1 != *p2)
			return ((int)*p1 - (int)*p2);
	return ((int)a->size - (int)b->size);
}