|
From: | Cesar Rabak |
Subject: | Re: How call RAW text with Prolog predicate from C? |
Date: | Thu, 23 Apr 2009 15:04:35 -0300 |
User-agent: | Thunderbird 2.0.0.21 (Windows/20090302) |
address@hidden escreveu:
Hello. I'am sorry for my bad English(russian).I want call from C application Prolog predicates. I try that:PlTerm goal; .... Pl_Start_Prolog(0, 0); char str[]="asserta(parent(bob,mary))"; //or ANYthing else in string format. goal = Pl_Mk_Atom(Pl_Create_Allocate_Atom(str)); args = Pl_Rd_Callable_Check(goal, &functor, &arity); Pl_Query_Begin(PL_TRUE); Pl_Query_Call(functor, arity, args);
Where are you checking the return of Pl_Query_Call? -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/
[Prev in Thread] | Current Thread | [Next in Thread] |