Forgot to add… the code should probably be something like this (not tested) if you wanted to ask “anc(bob,john)”…
Pl_Query_Begin(PL_TRUE);
arg[0] = Pl_Mk_String(“bob");
arg[1] = Pl_Mk_String(“john");
res = Pl_Query_Call(func, 2, arg);
and then res will be NULL or NOT-NULL I guess to indicate true / false.
_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
