Next: , Previous: , Up: cpg-bif   [Contents][Index]


12.3.33 SP_get_integer()

Synopsis

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

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.