-
Difference between revisions of "Functions HI-TECH C FREAD"
From HI-TECH C for CP/M Fan WIKI(EN)
(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...") |
(No difference)
|
Latest revision as of 19:53, 31 July 2017
FREAD
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. fwrite() ). No word alignment in the stream is assumed or necessary. The read is done via successive getc()'s.
SEE ALSO
fwrite, fopen, fclose, getc