delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/25/15:30:13

Date: Tue, 25 Jul 1995 11:31:47 -0700 (PDT)
From: Kevin Rogovin <ukwr AT mcl DOT ucsb DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: calloc vs malloc

	Is the cfree function really different from free? 
I mean all that calloc does is allocatate memory and initialize it
as zero, right?? so why does it need a different free() routine?
what goe wrong if you free memory allocated the calloc with 
free(or delete) ? Dooes it mess up the internals of the libc library?
I'm more curios about what djgpp does though.

		-Kevin Rogovin

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019