Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


fread()                   STDIO Function                  fread()




Read data from file stream

#include <stdio.h>
int fread(buffer, size, n, fp)
char *buffer; unsigned size, n; FILE *fp;

fread reads n items, each being size bytes long, from file stream
fp into buffer.

***** Example *****

For an  example of how  to use this  function, see the  entry for
fopen.

***** See Also *****

fwrite(), STDIO

***** Diagnostics *****

fread returns  zero upon reading  EOF or on  error; otherwise, it
returns the number of items read.


































COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026