SPRU514Z July 2001 – October 2023 SM320F28335-EP
Read Characters from a File
#include <file.h>
int read (int file_descriptor , char *buffer , unsignedcount );
The read function reads count characters into the buffer from the file associated with file_descriptor.
The function returns one of the following values:
0 | if EOF was encountered before any characters were read |
# | number of characters read (may be less than count) |
-1 | on failure |