From mboxrd@z Thu Jan 1 00:00:00 1970 From: charles.unix.pro@gmail.com (Charles Anthony) Date: Sat, 12 Sep 2015 19:29:34 -0700 Subject: [TUHS] Did realloc ever zero the new memory? In-Reply-To: References: <201509130032.t8D0WvPl024634@tahoe.cs.Dartmouth.EDU> Message-ID: On Sat, Sep 12, 2015 at 6:30 PM, Random832 wrote: > Doug McIlroy writes: > > It's odd that the later introduction of calloc() as a zeroing malloc() > > has never been complemented by a similar variant of realloc(). > > Speaking of calloc, was it ever envisioned that any implementation would > do anything more sophisticated with the two arguments than multiply them > together (and detect overflow)? Has any such implementation ever > existed? It seems like one of the great mysteries of the C library > design, especially since early implementations didn't do overflow > checking. > > Alignment perhaps? -- Charles -------------- next part -------------- An HTML attachment was scrubbed... URL: