Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pointers and char 1

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
Let's say I have this defined:

temp *char;

//some code here

temp = new char[A_NUMBER];

Now, let's say I want to allocate another mem space to temp...how would I do this without destroying what's already in temp? Thanks in advance;

Niky Williams
NTS Marketing
Niky.Williams@NTSMarketing.com
 
use realloc. John Fill
1c.bmp


ivfmd@mail.md
 
Awesome, thanks a lot!

Niky Williams
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top