12.3.42 SP_get_string()

Synopsis

     #include <sicstus/sicstus.h>
     
     int
     SP_get_string(SP_term_ref term,
                   char const **s);

Assigns to *s a pointer to the encoded string representing the name of a Prolog atom. This string must not be modified by the calling function.

Arguments

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