Next: cpg-ref-SP_put_number_codes, Previous: cpg-ref-SP_put_list_n_bytes, Up: cpg-bif [Contents][Index]
SP_put_list_n_codes()
#include <sicstus/sicstus.h> int SP_put_list_n_codes(SP_term_ref term, SP_term_ref tail, size_t n, char const *s);
Assigns to term
a Prolog code list represented by the
first n
bytes of the encoded string s
, prepended to the value of tail
.
Please note: Some characters may be encoded using more than one byte so the number of characters may be less than n
.
The SP_term_ref to be assigned
The tail of the code list
The number of character codes of s
to convert
The string to convert
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.