Next: cpg-ref-SP_put_list, Previous: cpg-ref-SP_put_integer, Up: cpg-bif [Contents][Index]
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.
The SP_term_ref to be assigned
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.
The size of buf
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.