12.3.35 SP_get_integer()

Synopsis

     #include <sicstus/sicstus.h>
     
     int
     SP_get_integer(SP_term_ref term,
                    long *i);

Assigns to *i the integer that corresponds to a Prolog number. The value must fit in *i for the operation to succeed.

Arguments

term
The SP_term_ref holding the value
i
The location to assign

Return Value

Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.

See Also

Accessing Prolog Terms.


Send feedback on this subject.