FREAD(3S) UNIX Programmer's Manual FREAD(3S) NAME fread, fwrite - buffered binary input/output to a stream file SYNOPSIS #include int fread ((char *) ptr, sizeof (*ptr), nitems, stream) FILE *stream; int fwrite ((char *) ptr, sizeof (*ptr), nitems, stream) FILE *stream; HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System V DESCRIPTION _F_r_e_a_d reads, into a block beginning at _p_t_r, _n_i_t_e_m_s of data of the type of *_p_t_r from the named input _s_t_r_e_a_m. It returns the number of items actually read. _F_w_r_i_t_e appends at most _n_i_t_e_m_s of data of the type of *_p_t_r beginning at _p_t_r to the named output _s_t_r_e_a_m. It returns the number of items actually written. SEE ALSO read(2), write(2), fopen(3S), getc(3S), gets(3S), printf(3S), putc(3S), puts(3S), scanf(3S).