home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
gnu
/
ixemul-39.47-env-bin.lha
/
man
/
cat3
/
fread.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
2KB
|
67 lines
FREAD(3) UNIX Programmer's Manual FREAD(3)
NNAAMMEE
ffrreeaadd, ffwwrriittee - binary stream input/output
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttddiioo..hh>>
_i_n_t
ffrreeaadd(_v_o_i_d _*_p_t_r, _s_i_z_e___t _s_i_z_e, _s_i_z_e___t _n_m_e_m_b, _F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffwwrriittee(_v_o_i_d _*_p_t_r, _s_i_z_e___t _s_i_z_e, _s_i_z_e___t _n_m_e_m_b, _F_I_L_E _*_s_t_r_e_a_m)
DDEESSCCRRIIPPTTIIOONN
The function ffrreeaadd() reads _n_m_e_m_b elements of data, each size bytes long,
from the stream pointed to by _s_t_r_e_a_m, storing them at the location given
by _p_t_r.
The function ffwwrriittee() writes _n_m_e_m_b elements of data, each _s_i_z_e bytes
long, to the stream pointed to by _s_t_r_e_a_m, obtaining them from the loca
tion given by _p_t_r.
RREETTUURRNN VVAALLUUEESS
The functions ffrreeaadd() and ffwwrriittee() advance the file position indicator
for the stream by the number of characters successfully read or written
and return that number. If an error occurs, or the endoffile is
reached, the return value is a short character count (or zero).
The function ffrreeaadd() does not distinguish between endoffile and error,
and callers must use feof(3) and ferror(3) to determine which occurred.
SSEEEE AALLSSOO
read(2), write(2)
SSTTAANNDDAARRDDSS
The functions ffrreeaadd() and ffwwrriittee() conform to ANSI C3.1591989 (``ANSI
C'').
BSD Experimental June 29, 1991 1