You'll like it

We promise
Everything here is my opinion. I do not speak for your employer.
August 2004
September 2004

2004-08-11 »

Embed me some HTML, Please

I was sitting today, thinking how unfortunate it is that C/C++ don't have any string quoting operators other than double-quote. I mean, designers of all sorts of languages since then (perl, in the especially extreme case) have figured out that if you want to print double quotes, that's just no fun at all.

Then I realized I was wrong.

#define qq(s) #s

int main()
{
    printf(qq(blah blah\n "quoted" stuff (and some parens)
        with newlines));
    return 0;
}

Try it. It works.

Why would you follow me on twitter? Use RSS.
apenwarr-on-gmail.com