Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!labrea!rutgers!att!ihlpb!nevin1 From: nevin1@ihlpb.ATT.COM (Liber) Newsgroups: comp.lang.c Subject: Re: Is malloc() or calloc() "better"? Message-ID: <9340@ihlpb.ATT.COM> Date: 6 Jan 89 01:10:20 GMT References: <46929@yale-celray.yale.UUCP> Reply-To: nevin1@ihlpb.UUCP (55528-Liber,N.J.) Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 16 In article <46929@yale-celray.yale.UUCP> ashcraft@yale-celray.UUCP (Cleve Ashcraft) writes: |"zero-fills the area" how? for ints? floats? doubles? It sets all the bits to 0. |i've got in the habit of malloc'ing everything and then zeroing |(appropriatly) the data if needed. This usually leads to a more portable program, which is generally a good thing. -- _ __ NEVIN ":-)" LIBER nevin1@ihlpb.ATT.COM (312) 979-4751 IH 4F-410 ' ) ) "I will not be pushed, filed, stamped, indexed, / / _ , __o ____ briefed, debriefed or numbered! My life is my own!" / (_