SLAU132Y September 2004 – June 2021
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 |