Date: Sat, 19 Feb 2000 07:26:45 +0500 (MVT) From: Prashant TR X-Sender: prashant_tr AT midpec DOT com To: night DOT walker AT tiscalinet DOT it cc: DJ Delorie Subject: Re: new vs malloc In-Reply-To: <38AD8622.AE067F97@tiscalinet.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 18 Feb 2000 night DOT walker AT tiscalinet DOT it wrote: > Which is the difference between the "new" command and the "malloc" > function? "new" is used in C++ programming. It calls malloc from within. "malloc" is the basic function to allocate memory. And "new" can catch exceptions as well. Try the "set_new_handler" in new.h.