From owner-freebsd-current Tue Oct 10 10:40:06 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA27232 for current-outgoing; Tue, 10 Oct 1995 10:40:06 -0700 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id KAA27220 for ; Tue, 10 Oct 1995 10:40:00 -0700 Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA10192; Tue, 10 Oct 1995 13:35:06 -0400 Date: Tue, 10 Oct 1995 13:35:06 -0400 From: "Garrett A. Wollman" Message-Id: <9510101735.AA10192@halloran-eldar.lcs.mit.edu> To: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) Cc: Kai.Vorma@hut.fi, current@freebsd.org Subject: Re: tail dumps core In-Reply-To: References: <199510100647.IAA13033@lk-hp-4.hut.fi> Sender: owner-current@freebsd.org Precedence: bulk < said: > Why not use 'calloc' instead? bzero isn't portable way. > Theoretically 'calloc' can do some internal optimization of zeroing. Neither of these are portable unless the array being cleared is composed of characters. There is almost never any reason to use calloc(3). -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant