Posted by Fox on 2000-04-19
If I can use it for classes, then what do I put in the "size_t count" parameter(the last parameter in the list)? > just use memcpy() function. > > Kory Spansel > > >From: "Fox" <sfox@xxxxxxxxxx.xxxxxxxxxxx.xxx> > >Reply-To: tcg@xxxx.xx.xx > >To: koryspansel@xxxxxxx.xxx > >Subject: Memory Copying > >Date: Tue, 18 Apr 2000 23:48:58 +0200 (MEST) > > > > I have some allocated memory(allocated with new) on the heap. Is there a > >way to make a copy of that memory(not the pointers to it, but the actual > >memory) > >and still have the copy be completely separate from the origional? > > This memory won't be of strings or arrays, but of classes. ******************************************* My brain is powered by C++ My hands are trained for the keyboard My legs are built for the hockey floor My ears are tuned to Mike Oldfield My eyes are sensitive to video games My body is the work of God! (My mind also has sarcastic sub-routines. If you found this offensive, ignore it and move on :-)
Previous post | Next post | Timeline | Home