Namespaces
Variants
Views
Actions

fgetpos

From cppreference.com
< c‎ | io
Revision as of 13:35, 10 April 2013 by P12 (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <stdio.h>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
int fgetpos( FILE          *stream, fpos_t          *pos );
</td>

<td class="t-dcl-nopad"> </td> <td > (until C99) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
int fgetpos( FILE *restrict stream, fpos_t *restrict pos );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C99) </td> </tr> Template:ddcl list end

Obtains the file position indicator for the file stream stream and stores it in pos.

Parameters

stream - file stream to examine
pos - pointer to a fpos_t object to store the file position indicator to

Return value

0 upon success, nonzero value otherwise

See also

Template:c/io/dcl list ftellTemplate:c/io/dcl list fseekTemplate:c/io/dcl list fsetpos
C++ documentation for fgetpos