Pelles C .chm documentation states
_setmode function
Declared in:
<io.h>
however, the definitions for the _setmode function "mode" parameter arguments
_O_BINARYetc.,
are not in
<io.h>but, instead, are located in
<fcntl.h>
The <io.h> header should
#include <fcntl.h>
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setmode?view=msvc-170 (https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setmode?view=msvc-170)
Non standard function, for msvc, so follows ms specs ?