File: gprolog065.html

package info (click to toggle)
gprolog 1.3.0-6.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 13,512 kB
  • ctags: 8,954
  • sloc: ansic: 57,431; perl: 16,620; sh: 5,900; makefile: 1,284
file content (92 lines) | stat: -rw-r--r-- 3,793 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="gprolog.css">
<TITLE>
Interfacing Prolog and C
</TITLE>
</HEAD>
<BODY TEXT=black BGCOLOR=white>
<A HREF="gprolog054.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="gprolog071.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
<HR>

<H2 CLASS="section"><A NAME="htoc340">9</A>&nbsp;&nbsp;Interfacing Prolog and C</H2>
<A NAME="Interfacing-Prolog-and-C"></A>

<UL>
<LI><A HREF="gprolog066.html">Calling C from Prolog</A>
<UL>
<LI><A HREF="gprolog066.html#toc277">Introduction</A>
<LI><A HREF="gprolog066.html#toc278"><TT>foreign/2</TT> directive</A>
<LI><A HREF="gprolog066.html#toc279">The C function</A>
<LI><A HREF="gprolog066.html#toc280">Input arguments</A>
<LI><A HREF="gprolog066.html#toc281">Output arguments</A>
<LI><A HREF="gprolog066.html#toc282">Input/output arguments</A>
<LI><A HREF="gprolog066.html#toc283">Writing non-deterministic C code</A>
<LI><A HREF="gprolog066.html#toc284">Example: input and output arguments</A>
<LI><A HREF="gprolog066.html#toc285">Example: non-deterministic code</A>
<LI><A HREF="gprolog066.html#toc286">Example: input/output arguments</A>
</UL>
<LI><A HREF="gprolog067.html">Manipulating Prolog terms</A>
<UL>
<LI><A HREF="gprolog067.html#toc287">Introduction</A>
<LI><A HREF="gprolog067.html#toc288">Managing Prolog atoms</A>
<LI><A HREF="gprolog067.html#toc289">Reading Prolog terms</A>
<LI><A HREF="gprolog067.html#toc290">Unifying Prolog terms</A>
<LI><A HREF="gprolog067.html#toc291">Creating Prolog terms</A>
<LI><A HREF="gprolog067.html#toc292">Testing the type of Prolog terms</A>
<LI><A HREF="gprolog067.html#toc293">Comparing Prolog terms</A>
<LI><A HREF="gprolog067.html#toc294">Copying Prolog terms</A>
<LI><A HREF="gprolog067.html#toc295">Comparing and evaluating arithmetic expressions</A>
</UL>
<LI><A HREF="gprolog068.html">Raising Prolog errors</A>
<UL>
<LI><A HREF="gprolog068.html#toc296">Managing the error context</A>
<LI><A HREF="gprolog068.html#toc297">Instantiation error</A>
<LI><A HREF="gprolog068.html#toc298">Type error</A>
<LI><A HREF="gprolog068.html#toc299">Domain error</A>
<LI><A HREF="gprolog068.html#toc300">Existence error</A>
<LI><A HREF="gprolog068.html#toc301">Permission error</A>
<LI><A HREF="gprolog068.html#toc302">Representation error</A>
<LI><A HREF="gprolog068.html#toc303">Evaluation error</A>
<LI><A HREF="gprolog068.html#toc304">Resource error</A>
<LI><A HREF="gprolog068.html#toc305">Syntax error</A>
<LI><A HREF="gprolog068.html#toc306">System error</A>
</UL>
<LI><A HREF="gprolog069.html">Calling Prolog from C</A>
<UL>
<LI><A HREF="gprolog069.html#toc307">Introduction</A>
<LI><A HREF="gprolog069.html#toc308">Example: <TT>my_call/1</TT> - a <TT>call/1</TT> clone</A>
<LI><A HREF="gprolog069.html#toc309">Example: recovering the list of all operators</A>
</UL>
<LI><A HREF="gprolog070.html">Defining a new C <TT>main()</TT> function</A>
<UL>
<LI><A HREF="gprolog070.html#toc310">Example: asking for ancestors</A>
</UL>
</UL>

<BR>
<BR>

<HR SIZE=2>
Copyright (C) 1999-2007 Daniel Diaz
<BR>
<BR>
Verbatim copying and distribution of this entire article is permitted in any
medium, provided this notice is preserved. <BR>
<BR>
<A HREF="index.html#copyright">More about the copyright</A>
<HR>
<A HREF="gprolog054.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<A HREF="gprolog071.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
</BODY>
</HTML>