|
-
October 25th, 2010, 09:29 AM
#1
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
-
October 25th, 2010, 11:22 AM
#2
Re: looking for tool that format long text string to valid c char*
Code:
int main()
{
const char* spam = "...";
}
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
-
October 26th, 2010, 03:12 AM
#3
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 *
-
October 26th, 2010, 03:47 AM
#4
Re: looking for tool that format long text string to valid c char*
 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
-
October 26th, 2010, 05:54 AM
#5
Re: looking for tool that format long text string to valid c char*
First you need a tool that can formulate a proper question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|