File Exchange

image thumbnail

C code comment remover

version 1.0.0.0 (1.05 KB) by Nitin Skandan
Removes comments

4 Downloads

Updated 04 Aug 2006

No License

Given a c file withe lot of comments. Ex: c code generated automatically. removing comments will make expose the source code. Use this m file for that

Cite As

Nitin Skandan (2021). C code comment remover (https://www.mathworks.com/matlabcentral/fileexchange/11877-c-code-comment-remover), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Srinath Murugan

Tool works perfect.

Sreejith Mohan

dhana balu

somewhat better

Stephan Lennartz

nice program, achieves the same as a c-compiler preprocessing output (RTFM, when you need the option for that, maybe something like "cc -i").
Here all comments are typed over with white space so that the outputfile has the sames size.
After trying out comes the question, where is a C to MatLab converter. And shouldn't be there one that takes with the good C-comments ?

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!