Need some function to convert from stringc

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Need some function to convert from stringc

Post by Tyn »

Hey

I need some way of converting stringc to char* because all the functions in the STL don't recognise stringc. Specifically I need to be able to use the atoi() function to convert to a number for the XML loader. How can I make this conversion?

This is a pretty general problem I have with the XML loader. Basically I can't use anything that isn't a string because the XML outputs to stringc which is something specific to Irrlicht. Without the ability to output to something other than stringc, any function outside Irrlicht can't use it. Has anyone else managed to use the output in any other way than a string?
Guest

Post by Guest »

stringc s;
char* buf=s.c_str();
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Cheers m8, not knowing that sorta crippled what I was trying to do :)
Post Reply