SPRUI04F july 2015 – april 2023
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 |