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
.
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.