Next: cpg-ref-SP_get_list_n_bytes, Previous: cpg-ref-SP_get_list, Up: cpg-bif [Contents][Index]
SP_get_list_codes()
#include <sicstus/sicstus.h> int SP_get_list_codes(SP_term_ref term, char const **s);
Assigns to *s
a zero-terminated array containing an encoded
string that corresponds to the given Prolog code list. The array
is subject to reuse by other support functions, so if the value is going
to be used on a more than temporary basis, it must be moved elsewhere.
The SP_term_ref holding the code list
The location to assign
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.