Path: utzoo!mnetor!motto!dave From: dave@motto.UUCP (dave brown) Newsgroups: comp.lang.c Subject: Re: Want a way to strip comments from a Message-ID: <54@motto.UUCP> Date: 20 Mar 89 16:26:52 GMT References: <7150@siemens.UUCP> <9900010@bradley> <2977@hound.UUCP> Reply-To: dave@motto.UUCP (dave brown) Organization: Motorola Canada, Ltd. Lines: 16 I missed the original posting, so I didn't catch the exact question, but when I have needed to remove comments, I have simply passed the source through the preprocessor stage of the compiler only. Granted, this does a lot of other things, which may or may not be undesirable for your application. Some compilers, however, have options on the preprocessor which can limit the scope of the damage. If the original poster still hasn't solved his problem, he can contact me. I think we also have a quick and dirty C program which someone wrote which does the job. ----------------------------------------------------------------------------- | David C. Brown | uunet!mnetor!motto!dave | | Motorola Canada, Ltd. | 416-499-1441 ext 3708 | | Communications Division | Disclaimer: Motorola is a very big company | -----------------------------------------------------------------------------