Archived

This topic is now archived and is closed to further replies.

cozman

c_str() function?

Recommended Posts

In the book I''m using on the STL it says that when you are opening a file (so you need a char array[]) style string. (aka NULL terminated) It says to use c_str(string). What header is this function in? I''m using bcc55 (the free one). Thanks.

Share this post


Link to post
Share on other sites
quote:
Original post by Kylotan
it''s not
c_str(string);
it''s
string.c_str();



yeah that was the problem, thanks

Share this post


Link to post
Share on other sites