Next: cpg-ref-SP_put_list_n_codes, Previous: cpg-ref-SP_put_list_codes, Up: cpg-bif [Contents][Index]
SP_put_list_n_bytes()#include <sicstus/sicstus.h>
int
SP_put_list_n_bytes(SP_term_ref term,
SP_term_ref tail,
size_t n,
unsigned char const *s);
Assigns to term a list of integers represented by the
first n elements of the byte array s, prepended to the value of tail.
The SP_term_ref to be assigned
The tail of the list
The number of bytes of s to convert
The byte array to convert
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.