Skip to content

Commit 2c4bc58

Browse files
committed
Add information about _stat to VS Change History
In VS 2013 and previous, `_stat(R"(C:\path\to\directory\)")` would fail due to the trailing backslash, because we used to use `FindFirstFile`. Now, we use `CreateFile`, and so trailing backslashes work when the path is the name of a directory.
1 parent f6a92c3 commit 2c4bc58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/porting/visual-cpp-change-history-2003-2015.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ Additionally, ongoing improvements to compiler conformance can sometimes change
253253
254254
The `smallheap` link option has been removed. See [Link Options](../c-runtime-library/link-options.md).
255255
256+
- **_stat**
257+
258+
The [`_stat`](../c-runtime-library/reference/stat-functions.md) family of functions use `CreateFile` in Visual Studio 2015, instead of `FindFirstFile` as in Visual Studio 2013 and earlier. This means that `_stat` on a path ending with a slash succeeds if the path refers to a directory, as opposed to before when the function would error with `errno` set to `ENOENT`.
259+
256260
#### \<string.h>
257261
258262
- **wcstok**

0 commit comments

Comments
 (0)