This file is indexed.

/usr/share/doc/lp-solve-doc/write_lp.htm is in lp-solve-doc 5.5.0.15-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
93
94
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<HEAD>
		<TITLE>write_lp, write_LP, write_lpex</TITLE>
		<style TYPE="text/css"> BODY { font-family:verdana,arial,helvetica; margin:0; }
	</style>
	</HEAD>
	<BODY>
		<TABLE STYLE="TABLE-LAYOUT:fixed" class="clsContainer" CELLPADDING="15" CELLSPACING="0"
			WIDTH="100%" BORDER="0">
			<TR>
				<TD VALIGN="top">
					<h1>write_lp, write_LP, write_lpex</h1>
					<p>
						Write an lp model to a file or via a routine.</p>
					<p>
						<b>unsigned char write_LP(lprec </b>*<i>lp</i><b>, FILE </b>*<i>stream</i><b>);</b></p>
					<P>
                                                <B>unsigned char write_lp(lprec </B>*<i>lp</i><b>, char </b>*<I>filename</I><B>);</B></P>
                                        <P>
                                                <B>unsigned char write_lpex(lprec </B>*<i>lp</i><b>, void </b>*<I>userhandle</I><B>, (void *userhandle, char *buf) </b><i>write_modeldata_routine</i><b>);</B></P>
					<p class="label">
						<b>Return Value</b></p>
					<p>
						The routines return TRUE (1) if the operation was
						successful. A return value of FALSE (0) indicates an error.<br>
                                                write_LP and write_lp write in a file. write_lpex calls routine write_modeldata_routine to pass the data to that must be written.
                                                In this routine you can do anything you want with the data. Note that data is provided in undefined shrunks.<br>
						Note that row entry mode must be off, else this function also fails. See <A HREF="set_add_rowmode.htm">set_add_rowmode</A>
					</p>
					<p class="label">
						<b>Parameters</b></p>
					<p class="dt"><i>lp</i></p>
					<p class="indent">Pointer to previously created lp model. See return value of <A href="make_lp.htm">
							make_lp</A>, <A HREF="copy_lp.htm">copy_lp</A>, <A href="read_lp.htm">read_lp,
							read_LP</A>, <A href="read_mps.htm">read_mps, read_freemps, read_MPS, read_freeMPS</A>, <A HREF="read_XLI.htm">read_XLI</A></p>
					<p class="dt">
						<i>stream</i></p>
					<p class="indent">
						Pointer to <b>FILE</b> structure.</p>
					<P class="dt"><I>filename</I></P>
					<P class="indent">
					Filename to write the lp model to.
					<P class="dt"><I>write_modeldata_routine</I></P>
					<P class="indent">
					Routine to write the lp model to. The routine has following definition:<br>
                                        typedef int (__WINAPI write_modeldata_func)(void *userhandle, char *buf);<br>
                                          userhandle is the second parameter passed to write_lpex<br>
                                          buf is a shrunk of data.
					<p class="label">
						<b>Remarks</b></p>
					<P>
						The <b>write_lp</b> and <B>write_LP</B> functions write the model to <i>filename</i>.
						<B>write_LP</B> needs a file pointer to an already opened file. <B>write_lp </B>
						accepts the name of the file. The latter function will generally be more
						convenient. <b>write_lpex</b> writes the model via a user defined routine.</P>
						When stream or filename are NULL, then output is written to output set by
						<A href="set_output.htm">set_outputstream, set_outputfile</A>. By default this is stdout.
					<P>
						The model in the file will be in <a href="lp-format.htm">lp-format</a>.
					</P>
					<p class="label">
						<b>Example</b></p>
					<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include "lp_lib.h"
int main(void)
{
  lprec *lp;

  /* Create a new LP model */
  lp = make_lp(0, 0);
  if(lp == NULL) {
    fprintf(stderr, "Unable to create new LP model\n");
    return(1);
  }

  write_lp(lp, "model.lp");

  delete_lp(lp);
  return(0);
}
</code></pre>
					<p>
						<A HREF="lp_solveAPIreference.htm">lp_solve API reference</A></p>
					<p>
						<b>See Also</b> <A HREF="delete_lp.htm">delete_lp</A>, <A HREF="free_lp.htm">free_lp</A>,
						<A HREF="make_lp.htm">make_lp</A>, <A HREF="copy_lp.htm">copy_lp</A>, <A href="read_lp.htm">read_lp, read_LP</A>, <A HREF="read_mps.htm">
							read_mps, read_freemps, read_MPS, read_freeMPS</A>, <A HREF="read_XLI.htm">read_XLI</A>, <A HREF="write_mps.htm">write_mps, write_freemps, write_MPS, write_freeMPS, MPS_writefileex</A></p>
				</TD>
			</TR>
		</TABLE>
	</BODY>
</html>