Next: , Previous: , Up: Support Functions   [Contents][Index]


6.4.4 Accessing Prolog Terms

The following functions will take an SP_term_ref and convert it to C data. They return zero if the conversion fails, and a nonzero value otherwise, and store the C data in output arguments, except the last two, which merely decompose compound terms.

SP_get_integer()

Accesses an integer.

SP_get_float()

Accesses a float.

SP_get_atom()

Accesses an atom.

SP_get_string()

Accesses an atom.

SP_get_address()

Accesses an integer representing a pointer.

SP_get_list_codes()

Accesses a code list.

SP_get_list_n_codes()

Accesses a code list.

SP_get_list_n_bytes()

Accesses a byte list.

SP_get_number_codes()

Accesses a code list denoting a number.

SP_get_integer_bytes()

Accesses an arbitrarily sized integer.

SP_get_functor()

Accesses a compound term.

SP_get_list()

Accesses a list.

SP_get_arg()

Accesses an argument of a compound term.


Send feedback on this subject.