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


12.3.98 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

SP_TYPE_ERROR

an error occurred.

See Also

Testing Prolog Terms.


Send feedback on this subject.