delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/26/10:12:11

Message-ID: <19991126143909.7168.rocketmail@web125.yahoomail.com>
Date: Fri, 26 Nov 1999 06:39:09 -0800 (PST)
From: Mohamed Saad <bazramit AT yahoo DOT com>
Subject: realloc... how to do it in C++?
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hi all,
   How are you all? hope everything is fine!

   well... I have a small question about C++.
   In C there is a function called realloc() that
reallocates some dynamically allocated memory!
   my question is... How can i implement it in C++
using new and delete?
   is there already a function in C++ libraries to do
it? if not, how can i do it myself?

   currently, i only use malloc,free which is
extremely BAD!

Thank you in advance!
Urs forever,
  Mohamed Saad El Dawy


__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

- Raw text -


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