#include <sicstus/sicstus.h> int SP_put_integer_bytes(SP_term_ref term, void *buf, size_t buf_size, int native);
term a reference to an arbitrarily sized integer.
bufconsists of the
buf_sizebytes of the twos complement representation of the integer. Less significant bytes are at lower indices.
bufis a pointer to the native
buf_sizebytes integer type.
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.
Creating Prolog Terms.