|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | Re: [ECS] C++ reallocate ? Dave Kolb Wed, 29 Sep 1999 22:16:16 -0400 |
What do you typically use the realloc for? If for strings then CString or
some other string class can be used and will take care of any needed
resizing of the memory needed to hold a string. IMO new works best for C++
objects though it can be used for other types. Are you having a particular
problem with realloc that you think new will solve?
Dave
-----Original Message-----
From: Mark Gilmore <omnip@usit.net>
To: ecs-list@netbloc.com <ecs-list@netbloc.com>
Date: Wednesday, September 29, 1999 9:58 AM
Subject: [ECS] C++ reallocate ?
>To C++ programmers:
>In studying C++, I am looking at replacing my malloc()
>calls with "new", but I can find no description (in
>my C++ book or in MS C++) on how to RE-allocate mem
>(which I use extensively via realloc()).
>How is this handled in C++ ? Thanks.
>--
>Mark Gilmore
>Omnipotence (ECS home automation software)
>http://www.usit.com/omnip
>423-745-0026
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects