Deutsch English Français Italiano |
<v74chk$u06v$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: James Kuyper <jameskuyper@alumni.caltech.edu> Newsgroups: comp.lang.c Subject: Re: question about nullptr Date: Mon, 15 Jul 2024 19:49:08 -0400 Organization: A noiseless patient Spider Lines: 20 Message-ID: <v74chk$u06v$1@dont-email.me> References: <v6bavg$3pu5i$1@dont-email.me> <20240706054641.175@kylheku.com> <v6ragn$318o9$1@dont-email.me> <v7495c$tapm$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 16 Jul 2024 01:49:09 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ad3e0456a88cbbbaebc2f2fbb1d2357a"; logging-data="983263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NYybCgtDX8b4YYuTqJZOerPDxM2MVnks=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:tm9i1pJFiDTXubkqUrB9rEgD+x4= Content-Language: en-US In-Reply-To: <v7495c$tapm$3@dont-email.me> Bytes: 1857 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.