12.3.26 SP_get_atom()

Synopsis

     #include <sicstus/sicstus.h>
     
     int
     SP_get_atom(SP_term_ref term,
                 SP_atom *a);

Assigns to *a the canonical representation of a Prolog atom

Arguments

term
The SP_term_ref holding the value
a
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.