Find the system's line terminator

c, c++, header, newline

Solution

No, because it's `\n` everywhere. That expands to the correct newline character(s) when you write it to a text file.

Problem

Is there a header file somewhere that stores the line termination character/s for the system (so that without any `#ifdef`s it will work on all platforms, MAC, Windows, Linux, etc)?

Original source