www.delorie.com/djgpp/doc/libc-2.01/libc_291.html   search  
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 -1 on error.

Example

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


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997