CCCC - a code counter for C and C++
A program to analyse C and C++ source code and report on some simple software metrics.
CCCC which stands for C and C++ Code Counter is a source code analysis tool for C and C++. It calculates metrics for the code, outputs data in a handy HTML format and even colours dangerous functions.
CCCC can be downloaded for free from http://cccc.sourceforge.net/.
Download and Install
Download from the SourceForge site (I got cccc-3.1.4.tar.gz) and extract the files. Change to the newly created directory (in my case cccc-3.1.4) and run
[root@Server cccc-3.1.4]# ./build_posixgcc.sh
[root@Server cccc-3.1.4]# make install
In the cccc directory there should be a cccc executable which can be copied to a directory in your $PATH. Generally the cccc executable is copied to /usr/local/bin/ as default.