#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.
The SP_term_ref to be assigned
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.
The size of
See above. Supported native sizes typically include two, four and eight (64bit) bytes.
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.
Creating Prolog Terms.