Release 5.05 of SCC dated 2012-01-23
Major extension of functionality — new options.
Usage: scc [-chnwCV][-s rep][-q rep] [file ...]
Options:
-c
— Print comments and not the code-h
— Print this help and exit-n
— Keep newlines in comments-s rep
— Replace the body of string literals withrep
(a single character)-q rep
— Replace the body of character literals withrep
(a single character)-w
— Warn about nested C-style comments-C
— Do not recognize C++/C99 style (//) comments-V
— Print version information and exit
Note that the sense of the -C
flag changed between versions 4.03 and 4.04 and version 5.05.
The -s
and -q
options make analysis of C code simpler; you don't have to worry about false positives in the middle of character strings or character literals.