Did you know ... Search Documentation:
Predicate prolog_var_name/3