Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ames!ncar!gatech!mcnc!rutgers!att!ulysses!andante!alice!andrew From: andrew@alice.UUCP (Andrew Hume) Newsgroups: comp.lang.c Subject: Re: Is malloc() or calloc() "better"? Summary: there is another reason Message-ID: <8683@alice.UUCP> Date: 6 Jan 89 04:12:50 GMT References: <46929@yale-celray.yale.UUCP> Organization: AT&T Bell Laboratories, Murray Hill NJ Lines: 6 one (admittedly weak) reason for using calloc is that it insulates you from 16-bit int compilers on 32-bit pointer machines. calloc(1024, 1024) gives you 1MB with 16 or 32 bit ints whereas malloc(1024*1024) may give you none.