Path: utzoo!attcan!telly!druid!darcy From: darcy@druid.uucp (D'Arcy J.M. Cain) Newsgroups: comp.lang.c Subject: Re: FREE Message-ID: <1990Mar1.140829.17199@druid.uucp> Date: 1 Mar 90 14:08:29 GMT References: <2714@stl.stc.co.uk> <1990Feb27.155133.20341@druid.uucp> <16055@haddock.ima.isc.com> Reply-To: darcy@druid.UUCP (D'Arcy J.M. Cain) Organization: D'Arcy Cain Consulting, West Hill, Ontario Lines: 14 In article <16055@haddock.ima.isc.com> karl@haddock.ima.isc.com (Karl Heuer) writes: >In article <1990Feb27.155133.20341@druid.uucp> darcy@druid.UUCP (D'Arcy J.M. Cain) writes: >>calloc does what you want and even initialize the space to zeroes for you. > >The calloc() function is disrecommended. Generally speaking, you should use >malloc() and initialize the contents yourself. > I've heard that before but not the reason. So why is it disrecommended? -- D'Arcy J.M. Cain (darcy@druid) | Thank goodness we don't get all D'Arcy Cain Consulting | the government we pay for. West Hill, Ontario, Canada | (416) 281-6094 |