SP_put_variable()
#include <sicstus/sicstus.h> int SP_put_variable(SP_term_ref term);
Assigns to term a reference to a new unbound Prolog variable.
term
Zero if the conversion fails (as far as failure can be detected), and a nonzero value otherwise.
Creating Prolog Terms.