Create a new term reference and make it point initially to the same term
as from. This function is commonly used to copy a predicate
argument to a term reference that may be written. Raise a resource
exception and returns (term_t)0 on failure. An example of
its use is given below, in the sample code pl_write_atoms().