Namespaces
Variants
Views
Actions

fread

From cppreference.com
< c‎ | io
Revision as of 12:33, 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 ">

<td >
size_t fread( void          *buffer, size_t size, size_t count,
              FILE          *stream );
</td>

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

<td >
size_t fread( void *restrict buffer, size_t size, size_t count,
              FILE *restrict stream );
</td>

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

Reads specified number of objects in the array buffer from the given input stream stream. Objects are not interpreted in any way.

Parameters

buffer - pointer to the first object object in the array to be read
size - size of each object in bytes
count - the number of the objects to be read

Return value

number of objects read successfully

See also

Template:c/io/dcl list fscanfTemplate:c/io/dcl list fgetsTemplate:c/io/dcl list fwrite