#include <sicstus/sicstus.h> int SP_get_arg(int i, SP_term_ref term, SP_term_ref arg);
i:th argument of a
compound term. This is similar to calling
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.
Accessing Prolog Terms.