summaryrefslogtreecommitdiff
path: root/devdocs/c/io%2Ffpos_t.html
blob: 7bbe71bbb451691ac14663def1d04c07b5bf0b44 (plain)
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
    <h1 id="firstHeading" class="firstHeading">fpos_t</h1>            <table class="t-dcl-begin"> <tr class="t-dsc-header"> <th> Defined in header <code>&lt;stdio.h&gt;</code> </th> <th> </th> <th> </th> </tr> <tr class="t-dcl"> <td class="t-dcl-nopad"> <pre data-language="c">typedef /* implementation-defined */ fpos_t;</pre>
</td> <td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr>  </table> <p><code>fpos_t</code> is a non-array complete object type, can be used to store (by <code><a href="fgetpos" title="c/io/fgetpos">fgetpos</a></code>) and restore (by <code><a href="fsetpos" title="c/io/fsetpos">fsetpos</a></code>) the position and multibyte parser state (if any) for a C stream.</p>
<table class="t-rev-begin"> <tr class="t-rev t-since-c95">
<td> <p>The multibyte parser state of a wide-oriented C stream is represented by a <code><a href="../string/multibyte/mbstate_t" title="c/string/multibyte/mbstate t">mbstate_t</a></code> object, whose value is stored as part of the value of a <code>fpos_t</code> object by <code><a href="fgetpos" title="c/io/fgetpos">fgetpos</a></code>.</p>
</td> <td><span class="t-mark-rev t-since-c95">(since C95)</span></td>
</tr> </table> <h3 id="References"> References</h3>  <ul>
<li> C17 standard (ISO/IEC 9899:2018): </li>
<ul>
<li> 7.21.1 Introduction (p: 217-218) </li>
<li> 7.21.2 Streams (p: 218-219) </li>
</ul>
<li> C11 standard (ISO/IEC 9899:2011): </li>
<ul>
<li> 7.21.1 Introduction (p: 296-298) </li>
<li> 7.21.2 Streams (p: 298-299) </li>
</ul>
<li> C99 standard (ISO/IEC 9899:1999): </li>
<ul>
<li> 7.19.1 Introduction (p: 262-264) </li>
<li> 7.19.2 Streams (p: 264-265) </li>
</ul>
<li> C89/C90 standard (ISO/IEC 9899:1990): </li>
<ul>
<li> 4.9.1 Introduction </li>
<li> 4.9.2 Streams </li>
</ul>
</ul>                   <h3 id="See_also"> See also</h3> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><a href="fgetpos" title="c/io/fgetpos"> <span class="t-lines"><span>fgetpos</span></span></a></div> </td> <td> gets the file position indicator <br> <span class="t-mark">(function)</span>  </td>
</tr> <tr class="t-dsc"> <td> <div><a href="fsetpos" title="c/io/fsetpos"> <span class="t-lines"><span>fsetpos</span></span></a></div> </td> <td> moves the file position indicator to a specific location in a file <br> <span class="t-mark">(function)</span>  </td>
</tr> <tr class="t-dsc"> <td> <div><a href="../string/multibyte/mbstate_t" title="c/string/multibyte/mbstate t"> <span class="t-lines"><span>mbstate_t</span></span></a></div>
<div><span class="t-lines"><span><span class="t-mark-rev t-since-c95">(C95)</span></span></span></div> </td> <td> conversion state information necessary to iterate multibyte character strings <br> <span class="t-mark">(class)</span>  </td>
</tr> <tr class="t-dsc"> <td colspan="2"> <span><a href="https://en.cppreference.com/w/cpp/io/c/fpos_t" title="cpp/io/c/fpos t">C++ documentation</a></span> for <code>fpos_t</code> </td>
</tr> </table>           <div class="_attribution">
  <p class="_attribution-p">
    &copy; cppreference.com<br>Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.<br>
    <a href="https://en.cppreference.com/w/c/io/fpos_t" class="_attribution-link">https://en.cppreference.com/w/c/io/fpos_t</a>
  </p>
</div>