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