Next: cpg-ref-SP_getenv, Previous: cpg-ref-SP_get_stream_user_data, Up: cpg-bif [Contents][Index]
SP_get_string()
#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.
The SP_term_ref holding the value
The location to assign
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.