[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reading prolog terms
From: |
Fumio Aoki |
Subject: |
reading prolog terms |
Date: |
Thu, 21 Nov 2002 11:13:40 -0500 |
I am programming C to call prolog, everything goes fine,
only I can not read list returned by prolog.
Please help and tell me how to get prolog list.
In prolog, S is a list, I want to read this list in C program.
?- path(penzance,london,S,P).
S = [penzance, exeter, bristol, london]
P = 304 ;
I tried,
Rd_String(arg[2]);
Rd_Chars(arg[2]);
Rd_Codes(arg[2]);
Rd_List(arg[2]);
neither workd, compiled program tells me
Fatal Error: Segmentation Violation
Please help, thanks in advance.
Best regards,
Fumio
---
Fumio Aoki, Ph.D., Department of Ecology and Evolution,
State University of New York at Stony Brook, Stony Brook, NY 11794-5245
Email: address@hidden, Phone: (631) 632-8539, Fax: (631) 632-7626
URL: http://life.bio.sunysb.edu/~aoki/ or http://cauchy.bio.columbia.edu/fumio/
- reading prolog terms,
Fumio Aoki <=