looking for tool that format long text string to valid c char*
Hello all i looking for a tool that takes long text string to valid const char *fmt
for example i want to set char* with this java script as string:
http://code.google.com/p/swfobject/
Thanks
Re: looking for tool that format long text string to valid c char*
Code:
int main()
{
const char* spam = "...";
}
Re: looking for tool that format long text string to valid c char*
i cant just copy the java script i need tool that will properly escape the string before i can set the char *
Re: looking for tool that format long text string to valid c char*
Quote:
Originally Posted by
umen
i cant just copy the java script i need tool that will properly escape the string before i can set the char *
That "tool" is called writing code.
You have a string, so write a function that takes a string and returns a properly escaped string. Do you know how to do that? (this is a C++ forum, so I would expect you're writing things in C++).
Regards,
Paul McKenzie
Re: looking for tool that format long text string to valid c char*
First you need a tool that can formulate a proper question.