SPRU514Z July 2001 – October 2023 SM320F28335-EP
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 |