I need to create temporary folder in C/C++ library, and make it compatible with Windows/MinGW.
While mkdir("/tmp/something") works well (with permissions parameter of course) under Linux/macOS/whatever else, it fails under MinGW with ENOENT error.
Do I correctly understand that since _mkdir() is Windows API call then it should contain Windows path (i.e. will not be translated from /tmp/...) ?
And, then, what will be correct solution to access temporary folder? Use $TEMP environment variable? Any other ways via some WinAPI calls?
Thanks.