[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the return value from gprolog in C?
From: |
Sean Charles |
Subject: |
Re: How to get the return value from gprolog in C? |
Date: |
Sun, 24 Nov 2013 10:12:59 +0000 |
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.