in reply to Removing '//' comments

Fails if '//' occurs in quoted text,

int foo = sprintf( line, "Comparing, //-comments in C/C++ act like #-comments in %s. ", "perl");

Update: oops, misread, see GrandFather's examples instead.

After Compline,
Zaxo