2024-10-20 01:05:12 +02:00
|
|
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
|
|
|
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_io_8c" xml:lang="en-US">
|
|
|
|
<title>src/util/io.c File Reference</title>
|
|
|
|
<indexterm><primary>src/util/io.c</primary></indexterm>
|
|
|
|
<para>
|
|
|
|
|
2024-10-22 23:58:04 +02:00
|
|
|
<para>input output </para>
|
2024-10-20 01:05:12 +02:00
|
|
|
|
|
|
|
</para>
|
2024-10-25 22:12:02 +02:00
|
|
|
<programlisting linenumbering="unnumbered">#include <assert.h><?linebreak?>#include <errno.h><?linebreak?>#include <fcntl.h><?linebreak?>#include <math.h><?linebreak?>#include <stdio.h><?linebreak?>#include <stdlib.h><?linebreak?>#include <stddef.h><?linebreak?>#include <stdbool.h><?linebreak?>#include <sys/types.h><?linebreak?>#include <sys/stat.h><?linebreak?>#include <unistd.h><?linebreak?>#include <time.h><?linebreak?>#include "../../include/util.h"<?linebreak?></programlisting>Include dependency graph for io.c:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
2024-10-27 04:18:58 +01:00
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../d3/d03/io_8c__incl.svg"></imagedata>
|
2024-10-25 22:12:02 +02:00
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
|
|
|
<simplesect>
|
2024-10-20 01:05:12 +02:00
|
|
|
<title>Functions </title>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para>char * <link linkend="_io_8c_1a40bb126a021a338b20022e741bbd4ae1">util_read_file</link> (char *filename)</para>
|
|
|
|
|
|
|
|
<para>reads a file from filename into a provided buffer </para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</simplesect>
|
|
|
|
<section>
|
|
|
|
<title>Detailed Description</title>
|
|
|
|
|
2024-10-22 23:58:04 +02:00
|
|
|
<para>input output </para>
|
2024-10-20 01:05:12 +02:00
|
|
|
|
|
|
|
<para>This file is part of Gem-graph. </para>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<title>Function Documentation</title>
|
|
|
|
<anchor xml:id="_io_8c_1a40bb126a021a338b20022e741bbd4ae1"/><section>
|
|
|
|
<title>util_read_file()</title>
|
|
|
|
<indexterm><primary>util_read_file</primary><secondary>io.c</secondary></indexterm>
|
|
|
|
<indexterm><primary>io.c</primary><secondary>util_read_file</secondary></indexterm>
|
|
|
|
<para><computeroutput>char * util_read_file (char * filename)</computeroutput></para><para>
|
|
|
|
|
|
|
|
<para>reads a file from filename into a provided buffer </para>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<formalpara>
|
|
|
|
<title>
|
|
|
|
Parameters</title>
|
|
|
|
<para>
|
|
|
|
<table frame="all">
|
|
|
|
<tgroup cols="2" align="left" colsep="1" rowsep="1">
|
|
|
|
<colspec colwidth="1*"/>
|
|
|
|
<colspec colwidth="4*"/>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>*filename</entry><entry></entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
|
|
|
</para>
|
|
|
|
</formalpara>
|
|
|
|
<formalpara><title>Returns</title>
|
|
|
|
|
|
|
|
<para>char </para>
|
|
|
|
</formalpara>
|
|
|
|
</para>
|
2024-10-27 04:18:58 +01:00
|
|
|
Here is the caller graph for this function:<para>
|
|
|
|
<informalfigure>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
|
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="../../df/d0a/io_8c_a40bb126a021a338b20022e741bbd4ae1_icgraph.svg"></imagedata>
|
|
|
|
</imageobject>
|
|
|
|
</mediaobject>
|
|
|
|
</informalfigure>
|
|
|
|
</para>
|
2024-10-20 01:05:12 +02:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</section>
|