-

Changes

Jump to: navigation, search

Functions HI-TECH C FREAD

609 bytes added, 19:53, 31 July 2017
Created page with "<strong>FREAD</strong> ==SYNOPSIS== #include <stdio.h> int fread(void * buf, size_t size, size_t cnt, FILE * stream) ==DESCRIPTION== Up to cnt objects, each of length..."
<strong>FREAD</strong>
==SYNOPSIS==

#include <stdio.h>

int fread(void * buf, size_t size, size_t cnt, FILE * stream)


==DESCRIPTION==
Up to cnt objects, each of length size, are read into
memory at buf from the stream. The return value is the
number of objects read. If none is read, 0 will be
returned. Note that a return value less than cnt, but
greater than 0, may not represent an error (cf.
<strong>fwrite</strong>() ). No word alignment in the stream is assumed
or necessary. The read is done via successive <strong>getc</strong>()'s.

==SEE ALSO==

fwrite, fopen, fclose, getc

Navigation menu