This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Sorry for this off-topic about c++ and c



Hello everybody,

I'm using gcc and gcc-c++ on redhat 7.2. Is there any way to convert a
string (declared with string s;) to a char*?

I need it because I have a string (not an array of char) and I want to
print it on a gtk_text widget.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]