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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GNU string deep copy

Status
Not open for further replies.

stuartd

Programmer
Jan 8, 2001
146
US
Hi,

Wrong forum I know, but the UNIX one is a bit dead. Can any of you MS guys help?

I am using GNU c++ string class. I have been copying strings in my code :

stringA = stringB;

This seems to do a shallow copy, as the address of the contents of the strings are the same.

How do I do a deep string copy?


Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top