/* Returns: Number of bytes needed to distinguish b from a.  */
size_t __bt_defpfx(DBT *a, DBT *b) const
/* Returns: Number of bytes needed to distinguish b from a.  */
size_t __bt_defpfx(DBT *a, DBT *b) const
{
	register u_char *p1, *p2;
	register size_t cnt, len;
	cnt = 1;
	len = MIN(a->size, b->size);
	for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2, ++cnt)
		if (*p1 != *p2)
			return (cnt);
	return (a->size < b->size ? a->size + 1 : a->size);
}