READB(3F) UNIX Programmer's Manual READB(3F) NAME readb, writeb - buffered binary input/output SYNTAX integer size, nitems, fileid, n, readb n = readb(var, size, nitems, fileid) integer size, nitems, fileid, n, writeb n = writeb(var, size, nitems, fileid) DESCRIPTION _R_e_a_d_b reads, into a variable _v_a_r, _n_i_t_e_m_s of data of length _s_i_z_e bytes from the input file associated with _f_i_l_e_i_d. 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 length _s_i_z_e bytes from the variable _v_a_r to the output file associated with _f_i_l_e_i_d. It returns the number of items actually written. SEE ALSO getc(3F), getlin(3F), open(3F), putc(3F), putlin(3F), printn(3F), scann(3F) DIAGNOSTICS _R_e_a_d_b and _w_r_i_t_e_b return 0 upon end of file or error. AUTHOR Bruce Julian, U.S. Geological Survey, Menlo Park, California Printed 5/17/83 1