I am converting someone else's C++ library to work under GCC (Xcode). What is the basic method for string formatting?
EDIT: I see the original phrasing of my question caused a lot of confusion, not to mention some amusement. What I need to do is replace certain string formatting functions in their library. They have done formatting via wxString, which I don't want to include in my project -- I know it is out there for Xcode, but that seems like a sledgehammer-type approach for the simple formatting I need to do. They have functions which take their objects and spit out strings -- typically (char*), and I need to create the same (char*) outputs [which might then go to another object in the library; not necessarily to the user], but do it in a way that does not use wxString. And I'd rather avoid turning it into C++. In Objective-C, I do this all the time with NSString's stringWithFormat: method. Obviously I don't want to use any NSString methods and don't want to create NSStrings. Creating (char*) or C++ strings would be fine. And no, it's not a false fact, and it's not homework.