home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:13102 comp.lang.c++:13191
- Newsgroups: comp.lang.c,comp.lang.c++
- Path: sparky!uunet!uunet.ca!geac!r-node!pseudo!mjn
- From: mjn@pseudo.uucp (Murray Nesbitt)
- Subject: Re: Difference between malloc and calloc
- Organization: Private system in Toronto, ON
- Date: Wed, 2 Sep 1992 08:45:04 GMT
- Message-ID: <MJN.92Sep2004504@pseudo.uucp>
- In-Reply-To: sdarbha@ha17.eng.ua.edu's message of 31 Aug 92 23:32:58 GMT
- References: <1992Aug31.233258.149607@ua1ix.ua.edu>
- Sender: mjn@pseudo.uucp (Murray Nesbitt)
- Lines: 10
-
-
- sdarbha@ha17.eng.ua.edu (Subrahmanyam Darbha) writes:
-
- >The only difference between malloc() and calloc() is that calloc()
- >initializes the memory pointed to by NULLs.
-
- No, it does not. calloc() stores zeros in the allocated array.
-
- --
- Murray
-