Next: , Previous: cpg-ref-SP_strdup, Up: cpg-bif

12.3.98 SP_string_from_atom()


     #include <sicstus/sicstus.h>
     char const *
     SP_string_from_atom(SP_atom atom);

Obtains the encoded string holding the characters of a Prolog atom. This string must not be modified by the calling function.


The atom to inspect.

Return Value

The encoded string if atom is valid, and 0 otherwise.

See Also

Creating and Manipulating SP_term_refs.

Send feedback on this subject.