From mboxrd@z Thu Jan 1 00:00:00 1970 From: clemc@ccc.com (Clem Cole) Date: Thu, 10 Sep 2015 16:41:26 -0400 Subject: [TUHS] Did realloc ever zero the new memory? In-Reply-To: <20150910202115.GH8154@mcvoy.com> References: <5962857.12872.1441915841364.JavaMail.root@zimbraanteil> <20150910202115.GH8154@mcvoy.com> Message-ID: below On Thu, Sep 10, 2015 at 4:21 PM, Larry McVoy wrote: > Am I the only one that remembers realloc() being buggy on some systems? > > ​Amen... it was rarely useful. I always found realloc to one of the part I could never trust. I do remember what you got back from any of the malloc calls could vary widely. Particularly pre-ANSI C and working on non-UNIX systems. Malloc in general was always a tarbaby because there were (are) so many implementations "in the wild." I used to advise our application people to create something that was application specific and then call the local malloc under the covers, but the chances that a general malloc implementation would be optimal for your code was low.​ Clem -------------- next part -------------- An HTML attachment was scrubbed... URL: