size_t fread(void *ptr, size_t size, size_t nitems, FILE *stream);
Points to the buffer where the data read is be held.
Is the size of one of the elements to be read.
Is the number of elements to be read.
Points to the input stream.
Upon successful completion,
Another process has the file locked.
The underlying file descriptor is in non-blocking mode, and the process would be delayed waiting for data to become available.
stream is not a valid stream opened for reading.
A signal interrupted the call.
An input error occurred.
The open object is a directory, not a file.
Memory could not be allocated for internal buffers.
A device error occurred.
The file is a regular file and an attempt was made to read at or beyond the offset maximum associated with the corresponding stream.
The underlying file descriptor is a non-blocking socket and no data is ready to be read.
If the stream is from a file opened in text mode, the line-terminating character sequence of carriage return plus linefeed is translated to linefeed. No such translation occurs for files opened in binary mode.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
abort(), exit(), fclose(), fopen(), fwrite(), getc(), gets(), lseek(), printf(), putc(), puts(), read(), scanf(), write()
PTC MKS Toolkit 10.3 Documentation Build 39.