SPRU514Z July 2001 – October 2023 SM320F28335-EP
Close File for I/O
#include <file.h>
int close (int file_descriptor );
The close function closes the file associated with file_descriptor.
The file_descriptor is the number assigned by open to an opened file.
The return value is one of the following:
0 | if successful |
-1 | on failure |