SP_compare()
#include <sicstus/sicstus.h> int SP_compare(SP_term_ref x, SP_term_ref y)
Compares two terms.
-1 if x @< y, 0 if x == y, and 1 if x @> y.
x
y
ref-lte-cte, Unifying and Comparing Terms.