ffrreeaadd() -- STDIO Function (libc)

Read data from file stream
#iinncclluuddee <ssttddiioo.h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;

ffrreeaadd() reads _n items, each being _s_i_z_e bytes long, from file stream _f_p into
_b_u_f_f_e_r.

_E_x_a_m_p_l_e
For an example of how to use this function, see the entry for ffooppeenn().

_S_e_e _A_l_s_o
ffwwrriittee(), lliibbcc
ANSI Standard, section 7.9.8.1
POSIX Standard, section 8.1

_D_i_a_g_n_o_s_t_i_c_s
ffrreeaadd() returns  zero upon reading  EOF or on error;  otherwise, it returns
the number of items read.
