我看到标准C无法判断文件是否已在另一个进程中打开.所以答案应该包含每个平台的几个例子.我需要检查Visual C++/Windows.
c windows file
c ×1
file ×1
windows ×1