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"); [download]
int foo = sprintf( line, "Comparing, //-comments in C/C++ act like #-comments in %s. ", "perl"); [download]
Update: oops, misread, see GrandFather's examples instead.
After Compline,Zaxo