Comment by asveikau
3 days ago
In about 27 years of using Linux and BSD I don't think I've seen it once. If you work professionally in C on Windows it is a practical concern, an everyday occurrence.
Another absurdly common issue is passing a FILE * across a DLL boundary. It is highly unlikely to work. I used to have to train new hires not to do this and tell partner teams working on C APIs to include I/o abstractions that don't involve FILE*, which would illicit a response as if I'm an alien.
This will work for any application compiled against uCRT, which has been the default for 10 years now.
https://learn.microsoft.com/en-us/cpp/windows/universal-crt-...