delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/19/03:11:52

Message-ID: <004101bf7a97$06ff2ca0$cff0fea9@stevenhe>
From: "Steven C. Hendrickson" <hendrick AT pe DOT net>
To: <djgpp AT delorie DOT com>
References: <38AD8622 DOT AE067F97 AT tiscalinet DOT it>
Subject: Re: new vs malloc
Date: Fri, 18 Feb 2000 21:06:01 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.3825.400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.3825.400
Reply-To: djgpp AT delorie DOT com

'new' automatically sizes the memory needed for your object, and returns the
proper type pointer to it;  'malloc'  needs to be sized, and the pointer
needs to be cast.

Steve Hendrickson
----- Original Message -----
From: <night DOT walker AT tiscalinet DOT it>
Newsgroups: comp.os.msdos.djgpp
To: "DJ Delorie" <djgpp AT Delorie DOT com>
Sent: Friday, February 18, 2000 9:49 AM
Subject: new vs malloc


> Which is the difference between the "new" command and the "malloc"
> function?
>
>
>

- Raw text -


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