Want a way to strip comments from a
brian at bradley.UUCP
brian at bradley.UUCP
Tue Mar 14 09:48:00 AEST 1989
> /* Written 9:58 am Mar 9, 1989 by jrv at siemens.UUCP */
> /* ---------- "Want a way to strip comments from a" ---------- */
> Does anyone have a sed or awk script which we
> can use to preprocess the C source and get rid of all the comments before
> sending it to the compiler?
The following works in vi: :%s/\/\*.*\*\///g
I don't know if it will work in sed, but it should...
...............................................................................
"Don't drop acid, take it pass-fail!"
Brian Michael Wendt UUCP: {cepu,uiucdcs,noao}!bradley!brian
Bradley University ARPA: cepu!bradley!brian at seas.ucla.edu
(309) 677-2335 ICBM: 40 40' N 89 34' W
More information about the Comp.lang.c
mailing list