From mdonder@cs.bilkent.edu.tr Fri Jun  1 09:22:45 2001
Received: from gordion.cs.bilkent.edu.tr (gordion.cs.bilkent.edu.tr [139.179.21.213])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f517Lk321828
	for <prolog@swi.psy.uva.nl>; Fri, 1 Jun 2001 09:21:47 +0200 (MET DST)
Received: from didim (didim [139.179.21.219])
	by gordion.cs.bilkent.edu.tr (8.11.2/8.11.2) with SMTP id f517Lmj04967
	for <prolog@swi.psy.uva.nl>; Fri, 1 Jun 2001 10:21:49 +0300 (EET DST)
Date: Fri, 1 Jun 2001 10:23:01 +0300 (EET DST)
From: Mehmet Donderler <mdonder@cs.bilkent.edu.tr>
X-Sender: mdonder@didim
To: prolog@swi.psy.uva.nl
Message-ID: <Pine.SOL.3.92.1010601101051.698A-100000@didim>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [SWIPL] Passing Results from Prolog!


Dear all:

I have some C code from which I call Prolog predicates, and I would like
to have the values returned so as to use them in my C code. It is possible
to do that with JPL (Java Prolog Interface), and it should also be
possible to obtain the results from Prolog predicates using C
as well. I would be very grateful if you could suggest me a method whereby
I could pass the results from Prolog to my C code since I could not find
a way to do so except for writing the results in a file within the Prolog
environment and then reading that file from within my C code.

Thanks in advance,

Mehmet Emin Donderler

