Want a way to strip comments from a

Leo de Wit leo at philmds.UUCP
Fri Mar 17 17:24:36 AEST 1989


In article <4896 at cbnews.ATT.COM> smk at cbnews.ATT.COM (Stephen M. Kennedy) writes:
|In article <9900010 at bradley> brian at bradley.UUCP writes:
|>  The following works in vi: :%s/\/\*.*\*\///g
|
|/* And this */ important_variable = 42 /* doesn't work either! */

And how about:

    puts(" A comment /* in here */");

And you can give more examples showing it isn't that trivial; a challenge
for the sed adept, perhaps ...

   Leo.



More information about the Comp.lang.c mailing list