_lclose

  HFILE _lclose(hFile)    
  HFILE hFile; /* file to close */

The _lclose function closes the specified file. As a result, the file is no longer available for reading or writing.

Parameters

hFile

Identifies the file to be closed. This handle is returned by the function that created or last opened the file.

Return Value

The return value is zero if the function successfully closed the file. Otherwise, the return value is -1.

Comments

This function is maintained for compatibility with previous versions of Windows. Win32 applications should use the CloseHandle function to close a file.

See Also

_lopen, CreateFile