SPRUIG8J January 2018 – March 2024
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 |