close
close(fid)
This function closes the file or channel associated with the identifier fid, which must be a return value of a previous call to open, open_accept, open_connect, or open_listen. close returns 0 if the file was closed successfully, or -1 if the file wasn't closed successfully (such as trying to close an already closed file).
Related Topics