

fread()                   STDIO Function                  fread()




Read data from file stream

#include <stdio.h>
iinntt ffrreeaadd(_b_u_f_f_e_r, _s_i_z_e, _n, _f_p)
cchhaarr *_b_u_f_f_e_r; uunnssiiggnneedd _s_i_z_e, _n; FFIILLEE *_f_p;

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


