CCMTCNVT(1)
π CCMTCNVT(1) β convert C++ comments to C comments π
okay so bestie, welcome to ccmtcnvt, straight out of the General Commands Manual (that's section 1, the user-commands girlies). sit down, grab a strawberry, we're doing comment surgery today πβ¨
πΈ NAME πΈ
ccmtcnvt β convert C++ comments to C comments
like. that's the whole job. that's her whole thing. she takes your // and she makes them C. iconic behaviour honestly π
β¨ SYNOPSIS β¨
ccmtcnvt [-hv] [--help] [--version] [file ...]
so you run her, you can toss her some flags (-h, -v, --help, --version β the classics), and then you hand her files. as many as you want. [file ...] means "one, or like, twelve, idk, however many you got". the square brackets around the flags mean they're optional, because she's low-maintenance like that π«Ά
no cap: this page does not spell out what each individual flag does, so I'm not gonna sit here and make up lore.-hand--helpand-vand--versionare what's in the synopsis, and that's what I'm giving you, fr fr.
π¦ DESCRIPTION π¦
okay so here's the tea β
this program converts the C++ style comments into traditional C style comments. the way that works is: C++ lets you write comments that begin with // and end with the next newline. cute! adorable! very "one-line queen" of her β¨
but β and this is the plot twist π β those // comments weren't introduced to the C language until the 1999 version of the C standard. so if you're living in the before-times (or, you know, your compiler is), those comments are just sitting there being illegal.
some C compilers alre3ady accept these, bestie. they do. they're flexible like that. but for those who don't, you can use this utility to convert them. that's it. that's the rescue mission π¦ΈββοΈ
so like β old compiler, new-ish code, comments that need a glow-down from // to the traditional C style? ccmtcnvt is your girl. periodt π
π BUGS π
okay we gotta be real for a sec π
ccmtcnvt assumes that the input is syntactically correct C code (except for the comments).
read that again. she is a comment converter, not a compiler, not a babysitter, not your therapist. she's not out here validating your braces, your semicolons, your vibes. if your C is broken beyond the comments, that's on you, and she's just gonna keep doing her little comment thing regardless π
so like, run your code through something that actually checks it first, okay? don't make her the main character of your syntax errors.
π AUTHOR π
Lars Wirzenius, liw@iki.fi. the icon, the legend, the one who wrote her π
and that's the page bestie!! the footer is just CCMTCNVT(1) β General Commands Manual energy, no date stamp, no version number, that's the whole flex π go forth and convert responsibly ππ
π¦ where this page comes from
- debian bookworm: liwc 1.21-2 Β· GPL-2.0-only
- debian trixie: liwc 1.21-2 Β· GPL-2.0-only
- ubuntu jammy: liwc 1.21-2 Β· GPL-2.0-only
- ubuntu noble: liwc 1.21-2 Β· GPL-2.0-only
- ubuntu resolute: liwc 1.21-2build1 Β· GPL-2.0-only
- ubuntu stonking: liwc 1.21-2build1 Β· GPL-2.0-only
- Copyright (c) 1994-2003 Lars Wirzenius
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms