Sujet : Re: question about nullptr
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 16. Jul 2024, 00:49:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v74chk$u06v$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 7/15/24 18:51, Lawrence D'Oliveiro wrote:
On Fri, 12 Jul 2024 14:19:19 +0100, Richard Harnden wrote:
Don't you use '\n'? Surely nobody would say 0x0a?
Why not full symbolic Unicode names, à la Python:
"\n" == "\N{LINE FEED}"
⇒
True
Keep in mind that, in text mode, the <stdio.h> library routines use '\n'
in memory to represent whatever platform-specific method is used in
files to indicate a new line. For example, that can be a simple '\n' on
typical Unix-like machines, '\n\r' or '\r\n' on other operating systems,
and on a number of older systems, it could be converted to and from a
fixed-size block with a character count at the the beginning of the
block. There's no requirement that it be the Unicode line feed character.