From ankit@cse.iitk.ac.in  Thu May 18 05:18:50 2000
Received: from mail.cse.iitk.ac.in ([210.212.54.4])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id FAA22853
	for <prolog@swi.psy.uva.nl>; Thu, 18 May 2000 05:18:47 +0200 (MET DST)
Received: from cseultra2.cse.iitk.ac.in (cseultra2 [172.31.16.2])
	by mail.cse.iitk.ac.in (8.9.3/8.9.3) with ESMTP id IAA24295
	for <prolog@swi.psy.uva.nl>; Thu, 18 May 2000 08:54:32 +0530
Received: from csews9.cse.iitk.ac.in (IDENT:ankit@csews9.cse.iitk.ac.in [172.31.18.9])
	by cseultra2.cse.iitk.ac.in (8.10.1/8.10.1) with ESMTP id e4I3H4w08975
	for <prolog@swi.psy.uva.nl>; Thu, 18 May 2000 08:47:04 +0530 (IST)
Date: Thu, 18 May 2000 08:41:55 +0530 (IST)
From: Ankit Jalote <ankit@cse.iitk.ac.in>
To: prolog@swi.psy.uva.nl
Subject: interfacing prolog with C
In-Reply-To: <200005180258.EAA22799@swi.psy.uva.nl>
Message-ID: <Pine.LNX.4.04.10005180831370.18349-100000@csews9.cse.iitk.ac.in>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Respected Sir,
              I am facing a problem.What I have to do is that I have to
write a C program which observes certain actions like A man walking,or he
is picking up the ball etc.The program maintains a database which is a set
of facts regarding the spatial relations of the various objects in the
domain like near(man,ball) meaning that man is near the ball,
pick(man,ball) meaning man picks up the ball.This part is already done.Now
what I have to do is to call prolog rules to understand these facts and
generate the natural language output of the action happening say The man
goes near the ball or The man picks up the ball.I am having problems with
the interfacing parts.Can you specify the steps this should be done.
                   
                                                     thanking you,
                                                     
     						     your's sincerely,
                                                     Ankit Jalote	

