CUNDECL(1)
π cundecl β encode C type declarations π
okay bestie, so this is the CUNDECL(1) page, living in the LOCAL manual, and it's literally the little sister of cdecl and she ATE. pull up a chair πͺβ¨
πΈ NAME πΈ
cundecl β she takes a whole verbose english sentence and turns it into a real C type declaration. yes, she speaks both languages. bilingual queen π
β¨ SYNOPSIS β¨
cundecl [-V] [-o file] [file ...]
π DESCRIPTION π
The cundecl utility reads a verbose english description and produces a C type declaration. and not just declarations bestie β casts are accepted as well π
so you can describe a cast in plain english and she'll hand you back the actual C.
The options are as follows, and there are exactly two so you literally cannot mess this up:
-ofile β Set the output destination to file. where she writes it, you decide π«Ά-Vβ Print version information on standard output then exit. a little "hi, this is me, bye" moment π
π EXAMPLES π
okay these are the actual moves, and they're giving iconic:
declare s as pointer to char;
declare x as function (fmt as pointer to const char, ...) returning int;
cast s into pointer to const char;
cast f into pointer to function (int) returning void;
like. she read that and understood it. no notes π₯
π SEE ALSO π
cdecl(1)β the original, the blueprint, the moment π¦
β STANDARDS β
The cundecl utility is expected to be ANSI X3.159-1989 (a.k.a. "ANSI C89") compatible. so like, she's vintage in the best way, not in the broken way πΈ
π§ AUTHORS π§
Sandro Sigala <sandro@sigala.it>. Based on cdecl written and put in the public domain by Graham Ross. two legends, one lineage, we stan π
ngl if you're reading this on Debian, hi, same. this page is dated July 15, 2001 and she has aged like fine wine, no cap πβ¨
mwah, go declare something gorgeous, bestie πππ¦
π¦ where this page comes from
- debian bookworm: cutils 1.6-6+b1 Β· BSD-2-Clause
- debian trixie: cutils 1.6-7 Β· BSD-2-Clause
- ubuntu jammy: cutils 1.6-5 Β· BSD-2-Clause
- ubuntu noble: cutils 1.6-6 Β· BSD-2-Clause
- ubuntu questing: cutils 1.6-7
- ubuntu resolute: cutils 1.6-7build1 Β· BSD-2-Clause
- ubuntu stonking: cutils 1.6-7build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms