12.3.75 SP_put_integer_bytes()

Synopsis

     #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.

Arguments

term
The SP_term_ref to be assigned
buf

buf_size
The size of buf
native
See above. Supported native sizes typically include two, four and eight (64bit) bytes.

Return Value

Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.

See Also

Creating Prolog Terms.


Send feedback on this subject.