12.3.95 SP_term_type()

Synopsis

     #include <sicstus/sicstus.h>
     
     int
     SP_term_type(SP_term_ref term);

Determines the type of the value of term.

Arguments

term
The SP_term_ref to be inspected

Return Value

One of:

SP_TYPE_VARIABLE
a variable
SP_TYPE_INTEGER
an integer
SP_TYPE_FLOAT
a float
SP_TYPE_ATOM
an atom
SP_TYPE_COMPOUND
a compound term

See Also

Testing Prolog Terms.


Send feedback on this subject.