www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/11/23:20:15

Date: Wed, 11 May 94 23:14:11 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: ahelm AT email DOT tuwien DOT ac DOT at
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: malloc(), calloc(), free(), cfree() ???

> What is the difference in memory allocation using malloc() or calloc() that 
> causes the different release commands ?
> 
> My problem is that I should port a program where malloc() and calloc() are 
> mixed and only free() is used. Do I have to expect troubles ?

In djgpp, cfree calls free.  This doesn't mean that other systems will
do so also, so you should plan on needing to port it if you encounter
a system that doesn't.


- Raw text -


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