Anything similar to Perl's qq or "here document" available for CGIs written in C?
Posted on 2003-10-29
I am new to writing CGIs in C, and wonder if there is anything available similar to Perl's qq or "here document" so that I don't have to printf every single line separately and escape all of the double quotes - especially when I have a block of html to output. I could make every block of html a file and read it in, but that gets messy and I would much rather have a single CGI program. Is there any nice way to do this in C? If not, any suggestions for something better than the printf method I described are much appreciated.
<font color="red"><b>Isn't there some way to do this in C?</b></font>
<font color="yellow"><b>Or this?</b></font>