共用方式為


_unlock_file

開啟檔案,讓其他處理序存取檔案。

void _unlock_file(
   FILE* file
);

參數

  • file
    檔案控制代碼。

備註

_unlock_file 函式開啟 file指定的檔案。 開啟檔案,讓其他處理序存取檔案。 除非 _lock_file 先前已經呼叫 file 指標,這個函式不應該呼叫。 呼叫中未鎖定的檔案的 _unlock_file 可能會造成死結。 如需範例,請參閱 _lock_file

需求

常式

必要的標頭

_unlock_file

<stdio.h>

如需其他相容性資訊,請參閱<簡介>中的相容性

.NET Framework 對等用法

System::IO::FileStream::Lock

請參閱

參考

檔案處理

_creat、_wcreat

_open、_wopen

_lock_file