Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!uflorida!mephisto!mcnc!duke!macbeth!khera From: khera@macbeth.cs.duke.edu (Vick Khera) Newsgroups: comp.lang.c Subject: Re: Wanted program to strip out "C" comments Keywords: "C" program, comments Message-ID: <16905@duke.cs.duke.edu> Date: 19 Jan 90 16:06:37 GMT References: <7480@cbnewsh.ATT.COM> Sender: news@duke.cs.duke.edu Organization: Duke University CS Dept., Durham, NC 27706 Lines: 22 +--------- | From: skumar@cbnewsh.ATT.COM (swaminathan.ravikumar) | Subject: Wanted program to strip out "C" comments | Newsgroups: comp.lang.c | Date: 18 Jan 90 15:22:20 GMT | | Is there any public domain software (c program, awk script) to | output just the source code comments both inline, and block? | -- ravi | skumar@hocus.att.com +--------- yep. i have two programs i wrote in lex: one strips out all of the comments of a C program leaving only the program, and the other strips out the program, leaving only the comments. e-mail if you want either/both. v. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ..!{mcnc,decvax}!duke!khera Durham, NC 27706