keymatch - compare keycolumns from two tables
SYNOPSIS
DESCRIPTION
keymatch
is used by the fast access search functions
to determine if all of the key columns in the row
searchrow
are matched by a row in
tablerow.
rows
is the number of rows in
tablerow
which match rows in
searchrow.
It starts off at zero and is incremented by
keymatch
each time it is called and another match is found.
It is used as the index to the
key->rowoffsets[]
array which stores the location or
rowstart
of each row in the table or list file which matches
searchrow.
rowstart
is also updated by
keymatch.
As many as MAXROW matches can be stored in the
key->rowoffsets[]
array.
RETURN VALUE
keymatch
returns the return value of the function defined by
key->compare.
In all of the comparison functions used by /rdb
programs, this value is zero if there is a match
and non-zero if there is not a match.
The comparison routines used by /rdb programs are
colcmp(),
numcmp(),
collook()
and
strcmp().
SEE ALSO