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.
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.