⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__apr__file__io.html

📁 apr函数库使用手册
💻 HTML
📖 第 1 页 / 共 5 页
字号:
          <td class="mdname" nowrap> <em>old_file</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__apr__pools.html#ga0">apr_pool_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>p</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Duplicate the specified file descriptor and close the original <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>new_file</em>&nbsp;</td><td>The old file that is to be closed and reused </td></tr>
    <tr><td></td><td valign=top><em>old_file</em>&nbsp;</td><td>The file to duplicate </td></tr>
    <tr><td></td><td valign=top><em>p</em>&nbsp;</td><td>The pool to use for the new file</td></tr>
  </table>
</dl>
<dl compact><dt><b>Remarks:</b></dt><dd>new_file MUST point at a valid apr_file_t. It cannot be NULL. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga9" doxytag="apr_file_io.h::apr_file_eof" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_file_eof           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__apr__file__io.html#ga2">apr_file_t</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>fptr</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Are we at the end of the file <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>fptr</em>&nbsp;</td><td>The apr file we are testing. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Remarks:</b></dt><dd>Returns APR_EOF if we are at the end of file, APR_SUCCESS otherwise. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga47" doxytag="apr_file_io.h::apr_file_flags_get" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> apr_int32_t apr_file_flags_get           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__apr__file__io.html#ga2">apr_file_t</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>f</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Retrieve the flags that were passed into <a class="el" href="group__apr__file__io.html#ga3">apr_file_open()</a> when the file was opened. <dl compact><dt><b>Returns:</b></dt><dd>apr_int32_t the flags </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga24" doxytag="apr_file_io.h::apr_file_flush" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_file_flush           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="group__apr__file__io.html#ga2">apr_file_t</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>thefile</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Flush the file's buffer. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>thefile</em>&nbsp;</td><td>The file descriptor to flush </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga20" doxytag="apr_file_io.h::apr_file_getc" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_file_getc           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">char *&nbsp;</td>
          <td class="mdname" nowrap> <em>ch</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__apr__file__io.html#ga2">apr_file_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>thefile</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Read a character from the specified file. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>ch</em>&nbsp;</td><td>The character to read into </td></tr>
    <tr><td></td><td valign=top><em>thefile</em>&nbsp;</td><td>The file descriptor to read from </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga22" doxytag="apr_file_io.h::apr_file_gets" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_file_gets           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">char *&nbsp;</td>
          <td class="mdname" nowrap> <em>str</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>len</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="group__apr__file__io.html#ga2">apr_file_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>thefile</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Read a string from the specified file. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td></td><td valign=top><em>str</em>&nbsp;</td><td>The buffer to store the string in. </td></tr>
    <tr><td></td><td valign=top><em>len</em>&nbsp;</td><td>The length of the string </td></tr>
    <tr><td></td><td valign=top><em>thefile</em>&nbsp;</td><td>The file descriptor to read from </td></tr>
  </table>
</dl>
<dl compact><dt><b>Remarks:</b></dt><dd>The buffer will be NUL-terminated if any characters are stored. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ga45" doxytag="apr_file_io.h::apr_file_info_get" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> apr_file_info_get           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="structapr__finfo__t.html">apr_finfo_t</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>finfo</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>apr_int32_t&nbsp;</td>
          <td class="mdname" nowrap> <em>wanted</em>, </td>
        </tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -