Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ukma!rutgers!bellcore!texbell!uhnix1!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: Is malloc() or calloc() "better"? Message-ID: <2592@ficc.uu.net> Date: 1 Jan 89 04:15:11 GMT References: Organization: Xenix Support Lines: 13 In article , slores%gables.span@umigw.miami.edu (Stanislaw L. Olejniczak) writes: > It seems to me that most programmers, in giving examples here, use malloc() > instead of calloc(). It seems to me that, with the headache I always get > thinking of C strings, calloc would be a more common procedure. Would someone > please enlighten me why is malloc so much more popular? Kind of a waste to clear out the memory when you're just about to overwrite it anyway. -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Work: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180. `-_-' Home: bigtex!texbell!sugar!peter, peter@sugar.uu.net. 'U` Opinions may not represent the policies of FICC or the Xenix Support group.