| Deutsch English Français Italiano |
|
<5g6ncjdsjfe86osi00k8il2ijlfbu8ouva@4ax.com> 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: dave_thompson_2@comcast.net Newsgroups: comp.lang.c Subject: Re: question about nullptr Date: Sun, 25 Aug 2024 16:55:40 -0400 Organization: A noiseless patient Spider Lines: 22 Message-ID: <5g6ncjdsjfe86osi00k8il2ijlfbu8ouva@4ax.com> References: <v6bavg$3pu5i$1@dont-email.me> <20240706054641.175@kylheku.com> <v6ragn$318o9$1@dont-email.me> <v7495c$tapm$3@dont-email.me> <v74chk$u06v$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Sun, 25 Aug 2024 22:55:49 +0200 (CEST) Injection-Info: dont-email.me; posting-host="09f9e4e3fd1f3f0a9b1d8559f78a3163"; logging-data="2199678"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xf7sx/GqmyWlVOPRpLtjl/Yxvy3dlZtM=" Cancel-Lock: sha1:86dzlaflgdTwO62FycwPVM5ClCw= X-Newsreader: Forte Agent 3.3/32.846 Bytes: 2248 On Mon, 15 Jul 2024 19:49:08 -0400, James Kuyper <jameskuyper@alumni.caltech.edu> wrote: > On 7/15/24 18:51, Lawrence D'Oliveiro wrote: [silliness] > 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. I never knew any older system that used a fixed-size block (or rather record, which in those days was not the same as block) AND prefix count in the same file, although OS/360 et seq used ONE of them. And Tandem Enscribe used either offset or count fields (depending on structure) at _end_ of block, near but not adjacent to records, except for textfiles had prefix counts per line AND word (of nonblanks) -- but the initial versions of their C implementation couldn't handle textfiles, so you had to convert them to and from 'data'.