Branch: Tag:

1996-10-25

1996-10-25 02:16:05 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

some modifications done

Rev: lib/include/simulate.pre.pike:1.4
Rev: lib/include/stdio.pre.pike:1.3
Rev: src/modules/files/testsuite.in:1.3

2113:   <text>   <p><tt>file_size</tt> - return the size of a file in bytes</p>    - <tt><p>#include &lt;simulate.h&gt;<br/> + <tt><p>#include &lt;stdio.h&gt;<br/>      </p>   <p>int file_size(string <i>file</i>);<br/>
4626:   <text>   <p><tt>read_bytes</tt> - read a number of bytes into a string from a file</p>    - <tt><p>#include &lt;simulate.h&gt;<br/> + <tt><p>#include &lt;stdio.h&gt;<br/>      </p>   <p>string read_bytes(string <i>file</i>,int <i>start</i>,int <i>len</i>);<br/>
4643:      </doc>   </docgroup> + <docgroup homogen-name='read_bytes' homogen-type='method'> + <method name='read_bytes'/><doc placeholder='true'> + <text> + <p><tt>read_bytes</tt> - read a number of lines into a string from file</p> +  + <tt><p>#include &lt;stdio.h&gt;<br/> +  + </p> + <p>string read_file(string <i>file</i>, int <i>start</i>, int <i>len</i>);<br/> + </p> + </tt> + <p>Read 'len' lines from the file 'file' after skipping 'start' lines + and return those lines as a string. If start and len are omitted + the whole file is read.</p> +  + file</text> +  + <group><seealso/><text> + <p><ref resolved='predef::read_bytes' to='read_bytes'>read_bytes</ref> and <ref resolved='predef::write_file' to='write_file'>write_file</ref></p> + </text></group> +  + </doc> + </docgroup>   <docgroup homogen-name='readline' homogen-type='method'>   <method name='readline'/><doc placeholder='true'>   <text>
5416:      </doc>   </docgroup> + <docgroup homogen-name='stderr' homogen-type='method'> + <method name='stderr'/><doc placeholder='true'> + <text> + <p><tt>stderr</tt> - Standard error stream</p> +  + <tt><p>#include &lt;stdio.h&gt;<br/> +  + </p> + <p>stderr-&gt;gets()<br/> + </p> + </tt> + <p>Stderr is a clone of /precompiled/file connected to the standard + error stream.</p> + </text> +  + <group><seealso/><text> + <p><ref resolved='predef::stderr' to='/precompiled/file'>/precompiled/file</ref> and <ref resolved='predef::werror' to='werror'>werror</ref></p> + </text></group> +  + </doc> + </docgroup> + <docgroup homogen-name='stdin' homogen-type='method'> + <method name='stdin'/><doc placeholder='true'> + <text> + <p><tt>stdin</tt> - Standard input</p> +  + <tt><p>#include &lt;stdio.h&gt;<br/> +  + </p> + <p>stdin-&gt;gets()<br/> + </p> + </tt> + <p>Stdin is a clone of /precompiled/FILE connected to the standard input.</p> + </text> +  + <group><seealso/><text> + <p><ref resolved='predef::stdin' to='/precompiled/FILE'>/precompiled/FILE</ref></p> + </text></group> +  + </doc> + </docgroup> + <docgroup homogen-name='stdout' homogen-type='method'> + <method name='stdout'/><doc placeholder='true'> + <text> + <p><tt>stdout</tt> - Standard output</p> +  + <tt><p>#include &lt;stdio.h&gt;<br/> +  + </p> + <p>stdout-&gt;gets()<br/> + </p> + </tt> + <p>Stdout is a clone of /precompiled/file connected to the standard output.</p> + </text> +  + <group><seealso/><text> + <p><ref resolved='predef::stdout' to='/precompiled/file'>/precompiled/file</ref> and <ref resolved='predef::write' to='write'>write</ref></p> + </text></group> +  + </doc> + </docgroup>   <docgroup homogen-name='strerror' homogen-type='method'>   <method name='strerror'/><doc placeholder='true'>   <text>
6181:   <text>   <p><tt>write_file</tt> - append a string to a file</p>    - <tt><p>#include &lt;simulate.h&gt;<br/> + <tt><p>#include &lt;stdio.h&gt;<br/>      </p>   <p>int write_file(string file, string str)<br/>