fixed a small bug in eval ehrhart
[polylib.git] / doc / codeDoc / html / r2p_8c-source.html
blob7c8117ca5c2b1e7410601af0bd57c4ba12a56c5e
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>r2p.c Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.2.15 -->
7 <center>
8 <a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
9 <hr><h1>r2p.c</h1><a href="r2p_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/* Rays 2 Polyhedron</font>
10 00002 <font class="comment"> */</font>
11 00003
12 00004 <font class="preprocessor">#include &lt;stdio.h&gt;</font>
13 00005 <font class="preprocessor">#include &lt;polylib/polylib.h&gt;</font>
14 00006
15 <a name="l00007"></a><a class="code" href="r2p_8c.html#a0">00007</a> <font class="keywordtype">int</font> <a class="code" href="c2p_8c.html#a1">main</a>() {
16 00008
17 00009 Matrix *R;
18 00010 Polyhedron *P;
19 00011
20 00012 R = <a class="code" href="matrix_8c.html#a4">Matrix_Read</a>();
21 00013 <font class="keywordflow">if</font>(R-&gt;NbColumns &lt; 2) {
22 00014 printf(<font class="stringliteral">"Wrong input: %d columns\n"</font>, R-&gt;NbColumns );
23 00015 <a class="code" href="matrix_8c.html#a1">Matrix_Free</a>(R);
24 00016 exit(1);
25 00017 }
26 00018 P = <a class="code" href="polyhedron_8c.html#a26">Rays2Polyhedron</a>(R,200);
27 00019 <a class="code" href="matrix_8c.html#a1">Matrix_Free</a>(R);
28 00020 <a class="code" href="polyhedron_8c.html#a20">Polyhedron_Print</a>(stdout,P_VALUE_FMT,P);
29 00021 <a class="code" href="polyhedron_8c.html#a19">Domain_Free</a>(P);
30 00022 <font class="keywordflow">return</font> 0;
31 00023 }
32 00024
33 </pre></div><hr><address align="right"><small>Generated on Fri Nov 8 12:10:07 2002 for Polylib by
34 <a href="http://www.doxygen.org/index.html">
35 <img src="doxygen.png" alt="doxygen" align="middle" border=0
36 width=110 height=53></a>1.2.15 </small></address>
37 </body>
38 </html>