home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / c / 13102 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  774 b 

  1. Xref: sparky comp.lang.c:13102 comp.lang.c++:13191
  2. Newsgroups: comp.lang.c,comp.lang.c++
  3. Path: sparky!uunet!uunet.ca!geac!r-node!pseudo!mjn
  4. From: mjn@pseudo.uucp (Murray Nesbitt)
  5. Subject: Re: Difference between malloc and calloc
  6. Organization: Private system in Toronto, ON
  7. Date: Wed, 2 Sep 1992 08:45:04 GMT
  8. Message-ID: <MJN.92Sep2004504@pseudo.uucp>
  9. In-Reply-To: sdarbha@ha17.eng.ua.edu's message of 31 Aug 92 23:32:58 GMT
  10. References: <1992Aug31.233258.149607@ua1ix.ua.edu>
  11. Sender: mjn@pseudo.uucp (Murray Nesbitt)
  12. Lines: 10
  13.  
  14.  
  15. sdarbha@ha17.eng.ua.edu (Subrahmanyam Darbha) writes:
  16.  
  17. >The only difference between malloc() and calloc() is that calloc() 
  18. >initializes the memory pointed to by NULLs.
  19.  
  20. No, it does not.  calloc() stores zeros in the allocated array.
  21.  
  22. -- 
  23. Murray
  24.