Thread: Basic file io
View Single Post
Old 04-07-2017, 05:57 PM   #13
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,110
Default

I have to read up on both strcat (what I was actually looking for I guess) and snprintf, but it works now, thanks !

Quote:
Please try to avoid using raw C strings in C++ code if in any way possible...Pretty much anything available in C++ will be better than that. WDL_String would be worth looking into in WDL/SWS context. (If you have other functions/classes that want raw C strings as arguments, WDL_String has the Get() method to get the raw char* C string buffer.)
Ok, but let's take GetResourcePath() as example, it returns a pointer to a C string (as I gather), how could I avoid using C strings there ?

edit:
Too tired for thinking currently, will revisit it tomorrow. Anyway, I appreciate the help, thanks again.

Last edited by nofish; 04-07-2017 at 06:09 PM.
nofish is offline   Reply With Quote