---
name: "rmccmt"
section: "1"
platform: "linux"
package: "liwc"
version: "1.21-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rmccmt"
---

# rmccmt(1)

remove comments from C and C++ programs

## NAME

rmccmt - remove comments from C and C++ programs

## SYNOPSIS

rmccmt \[-n\] \[-c\] \[file ...\]

## DESCRIPTION

This program removes comments from C source code, both traditional and C++ style comments. Each traditional comment is replaced with one space, and C++ style comment is replaced with a newline. With the \`-n' option, newlines inside traditional C comments are kept. With the '-c' option, code is removed and comments kept.

## AUTHOR

Lars Wirzenius, liw@iki.fi.
