SLAU132Y September 2004 – June 2021
Write Characters to a File
#include <file.h>
int write (int file_descriptor , const char *buffer , unsignedcount );
The write function writes the number of characters specified by count from the buffer to the file associated with file_descriptor.
The function returns one of the following values:
# | number of characters written if successful (may be less than count) |
-1 | on failure |