RE: [Dev-C++] passing the content of a string to a variable from
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@at...> - 2003-04-10 08:16:46
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of jose isaias cabrera > Sent: Thursday, April 10, 2003 4:21 AM > To: Per Westermark; Ioannis Vranos > Cc: Dev-C++ Mailing List > Subject: Re: [Dev-C++] passing the content of a string to a > variable from > > > > Per, > > > // Need to return a pointer to text, not just a single character. > > char* FileContent(char *file) > > this worked! Thanks! I had the code correct, but I was > returning a string > instead of a string pointer. For accuracy you were returning a char. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |