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>c2p.c Source File
</title>
4 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
6 <!-- Generated by Doxygen 1.2.15 -->
8 <a class=
"qindex" href=
"main.html">Main Page
</a> <a class=
"qindex" href=
"annotated.html">Compound List
</a> <a class=
"qindex" href=
"files.html">File List
</a> <a class=
"qindex" href=
"functions.html">Compound Members
</a> <a class=
"qindex" href=
"globals.html">File Members
</a> </center>
9 <hr><h1>c2p.c
</h1><a href=
"c2p_8c.html">Go to the documentation of this file.
</a><div class=
"fragment"><pre><a name=
"l00001"></a><a class=
"code" href=
"c2p_8c.html#a0">00001</a> <font class=
"preprocessor">#define WS
1000</font>
10 00002 <font class=
"preprocessor"></font>
11 00003 <font class=
"preprocessor">#include
<polylib/polylib.h
></font>
13 <a name=
"l00005"></a><a class=
"code" href=
"c2p_8c.html#a1">00005</a> <font class=
"keywordtype">int
</font> <a class=
"code" href=
"c2p_8c.html#a1">main
</a>() {
18 00010 A =
<a class=
"code" href=
"matrix_8c.html#a4">Matrix_Read
</a>();
19 00011 <font class=
"keywordflow">if
</font>(A-
>NbColumns
< 2) {
20 00012 printf(
<font class=
"stringliteral">"Wrong input: %d columns\n"</font>, A-
>NbColumns );
21 00013 <a class=
"code" href=
"matrix_8c.html#a1">Matrix_Free
</a>(A);
24 00016 <a class=
"code" href=
"matrix_8c.html#a2">Matrix_Print
</a>(stdout,P_VALUE_FMT,A);
25 00017 P =
<a class=
"code" href=
"polyhedron_8c.html#a24">Constraints2Polyhedron
</a>(A,
<a class=
"code" href=
"c2p_8c.html#a0">WS
</a>);
26 00018 <a class=
"code" href=
"matrix_8c.html#a1">Matrix_Free
</a>(A);
27 00019 <a class=
"code" href=
"polyhedron_8c.html#a20">Polyhedron_Print
</a>(stdout,P_VALUE_FMT,P);
28 00020 <a class=
"code" href=
"polyhedron_8c.html#a19">Domain_Free
</a>(P);
29 00021 <font class=
"keywordflow">return
</font> 0;
31 </pre></div><hr><address align=
"right"><small>Generated on Fri Nov
8 12:
10:
06 2002 for Polylib by
32 <a href=
"http://www.doxygen.org/index.html">
33 <img src=
"doxygen.png" alt=
"doxygen" align=
"middle" border=
0
34 width=
110 height=
53></a>1.2.15 </small></address>