12.3.76 SP_put_list_n_codes()

Synopsis

     #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 character codes of the encoded string s, prepended to the value of tail.

Arguments

term
The SP_term_ref to be assigned
tail
The tail of the code-list
n
The number of character codes of s to convert
s
The string to convert

Return Value

Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.

See Also

Creating Prolog Terms.


Send feedback on this subject.