Next: cpg-ref-SP_get_atom, Previous: cpg-ref-SP_get_address, Up: cpg-bif [Contents][Index]
SP_get_arg()
#include <sicstus/sicstus.h> int SP_get_arg(int i, SP_term_ref term, SP_term_ref arg);
Assigns to arg
the i
:th argument of a
compound term. This is similar to calling arg/3
.
The (one-based) argument number
The SP_term_ref holding the compound term
The SP_term_ref to be assigned
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.