Go to the first, previous, next, last section, table of contents.


fread

Syntax

#include <stdio.h>

size_t fread(void *buffer, size_t size, size_t number, FILE *file);

Description

This function reads size*number characters from file to buffer.

Return Value

The number of items of size size read, or less if there was an error.

Portability

ANSI, POSIX

Example

int foo[10];
fread(foo, sizeof(int), 10, stdin);


Go to the first, previous, next, last section, table of contents.