Namespaces
Variants
Views
Actions

fwrite

From cppreference.com
< c‎ | io
Revision as of 22:36, 2 November 2012 by P12bot (Talk | contribs)

 
 
File input/output


Functions
File access
Direct input/output
fwrite
Unformatted input/output
(C95)(C95)
(C95)
(C95)(C95)
(C95)
(C95)
Formatted input
Formatted output
File positioning
Error handling
Operations on files
 
Defined in header <stdio.h>
size_t fwrite( const void *buffer, size_t size, size_t count, FILE *stream );

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