Category : Miscellaneous Language Source Code
Archive   : NOCOM.ZIP
Filename : NOCOM.DOC
This program is for anyone to use; all rights to the program itself
are reserved by the author. No liability of any sort is assumed
by the author for any situation caused by use or misuse of this
program.
NoComment reads in a specified source file, in C or Pascal, and outputs
the file without comments. In C, the standard comments are bracketed
by /*...*/ ; in Pascal, comments are in (*...*) . Turbo Pascal
also uses {...}. The file that is read in is not modified in any way.
NoComment assumes a C input file, but that may be changed by a command
line switch.
Use of NoComment is as shown:
NOCOM [-pt] input.fil [output.fil]
Options:
-p : Specifies standard Pascal input file.
-t : Specifies Turbo Pascal input file.
-pt : Same as -t.
output.fil : Name of file to send uncommented source code to.
If not specified, NoComment will read "input.fil"
and output to "input.!".
Notes:
1. Sometimes in C the #if...#endif statements are used to block
off code, as in #if 0
.
.
#endif
NoComment passes this along as regular text (it does not delete it),
however it will take out any true comments within such blocks.
2. You can specify output to the printer by typing
NOCOM [options] input.fil PRN
(not PRN: , but just PRN)
3. NoComment can handle input source files up to 64K in size.
4. Carriage returns within comments will be deleted, but those
at the end of comments are not removed. Example:
/* A C comment */ (* Pascal comment
/* leaving three */ leaving one carriage
/* carriage returns behind. */ return behind. *)
If you have any comments, ideas, etc. (bug reports? yikes!) send
them to Compuserve 71331, 3060. I created this out of need to cram
C source files onto floppies; if anybody else gets any use out
of this program, I'd like to hear about it.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/