Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/io/c/fread"

From cppreference.com
< cpp‎ | io‎ | c
m (1 revision: import content)
m (Text replace - "{{params}}" to "===Parameters===")
Line 8: Line 8:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{params}}
+
===Parameters===
 
{{param list begin}}
 
{{param list begin}}
 
{{param list item | buffer | pointer to the first object object in the array to be read}}
 
{{param list item | buffer | pointer to the first object object in the array to be read}}

Revision as of 14:57, 2 August 2011

Template:cpp/io/c/sidebar

Defined in header <cstdio>
size_t fread( const void *buffer, size_t size, size_t count, FILE *stream );

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

Template:returns

number of objects read successfully

Template:see also

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