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.
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.