Namespaces
Variants
Views
Actions

fwrite

From cppreference.com
< c‎ | io
Revision as of 15:22, 1 July 2013 by P12bot (Talk | contribs)

Defined in header <stdio.h>
size_t fwrite( const void          *buffer, size_t size, size_t count,
               FILE          *stream );
(until C99)
size_t fwrite( const void *restrict buffer, size_t size, size_t count,
               FILE *restrict stream );
(since C99)

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

prints formatted output to stdout, a file stream or a buffer
(function) [edit]
writes a character string to a file stream
(function) [edit]
reads from a file
(function) [edit]