Namespaces
Variants
Views
Actions

fwrite

From cppreference.com
< c‎ | io
Revision as of 13:34, 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 fwrite( const 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 fwrite( const 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

Writes count of objects in the given array buffer to the output stream stream. Objects are not interpreted in any way.

Parameters

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

Return value

number of objects written successfully

See also

Template:c/io/dcl list fprintfTemplate:c/io/dcl list fputsTemplate:c/io/dcl list fread