Next: cpg-ref-SP_is_list, Previous: cpg-ref-SP_is_float, Up: cpg-bif [Contents][Index]
SP_is_integer()
#include <sicstus/sicstus.h> int SP_is_integer(SP_term_ref term);
Determines whether the value of term
is a Prolog integer.
The SP_term_ref to be inspected
1 if it is a integer and 0 otherwise.
Please note: SP_is_integer()
will return true also for
integers that are too large to be passed to
SP_get_integer()
. In this case you will need to use
SP_get_integer_bytes()
to obtain the value.