WHEREDIFF

WHEREDIFF returns a size_t value that specifies the index of the first byte that differs in two buffers or zero if all the bytes are the same.

Read syntax diagramSkip visual syntax diagramWHEREDIFF( x, y, z)
x
Expression. It must have the POINTER or OFFSET type. If OFFSET, the expression must be declared with the AREA qualification.
y
Expression. It must have the POINTER or OFFSET type. If OFFSET, the expression must be declared with the AREA qualification.
z
Expression. It is converted to size_t.

If the two buffers are different, the WHEREDIFF built-in function does not indicate if the first byte that differs is greater or less than the corresponding byte in the second buffer. If you want to know how the buffers differ, use the COMPARE built-in function instead.