Next: cpg-ref-SP_get_integer_bytes, Previous: cpg-ref-SP_get_functor, Up: cpg-bif [Contents][Index]
SP_get_integer()
#include <sicstus/sicstus.h> int SP_get_integer(SP_term_ref term, SP_integer *i);
Assigns to *i
the integer that corresponds
to a Prolog number. The value must fit in *i
for the operation to
succeed.
The SP_term_ref holding the value
The location to assign
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.