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:

  • -o file β€” 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 πŸ’–πŸŽ€πŸ¦‹