Skip to main content
gamedev.net
🔒 Locked

c_str() function?

Started by cozman 2 replies 600+ views
Original Post
cozman
cozman
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.
felix9x
felix9x
  <string>  


Edited by - felix9x on August 10, 2001 1:11:08 AM
Kylotan
Kylotan
it''s not
c_str(string);
it''s
string.c_str();
cozman
cozman
quote:
Original post by Kylotan
it''s not
c_str(string);
it''s
string.c_str();



yeah that was the problem, thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.