5 ms·
Perhaps you have been spared from writing code for Windows: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-170 https:
by nemetroid 4y ago
Perhaps you have been spared from writing code for Windows:
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-170 https://learn.microsoft.com/en-us/cpp/c-runtime-library/refe...
> In text mode, carriage return-line feed (CRLF) combinations are translated into single line feed (LF) characters on input, and LF characters are translated to CRLF combinations on output.
- Dylan16807 4y agoIs there a reason I should blame the OS specifically and not the C runtime?
- nemetroid 4y agoI guess it depends on how specific you want to be. The Windows C runtime is a component of the OS.
- Dylan16807 4y agoWell you're not really supposed to use the OS copy of msvcrt.dll
- tedunangst 4y agoYes, library functions do what you ask them to do.