From: "Andrew R. Gillett" Newsgroups: comp.os.msdos.djgpp Subject: Re: Converting a string to a char * Date: Sat, 25 Dec 1999 00:16:22 -0000 Organization: www.release-dates.co.uk Lines: 11 Message-ID: References: <840i65$auc$1 AT bob DOT news DOT rcn DOT net> NNTP-Posting-Host: modem-147.maroon-clown.dialup.pol.co.uk X-Trace: news5.svr.pol.co.uk 946080996 26259 62.137.44.147 (25 Dec 1999 00:16:36 GMT) NNTP-Posting-Date: 25 Dec 1999 00:16:36 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: MicroPlanet Gravity v2.20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In comp.os.msdos.djgpp, Tom wrote: > *b = *s.c_str(); Change this to: strcpy (b, s.c_str()); -- Andrew Gillett http://argnet.fatal-design.com/ ICQ: See homepage "Your pets may be disembowelled if you do not keep up payments." - Alexei Sayle