newlib/winsup/mingw/samples/fmode
..
all.c
jamfile
readme.txt
test2.c
test.c

These two demos show how _fmode and _CRT_fmode can be used to modify the
default file opening mode (text vs. binary) and/or the mode of the standard
file handles.