1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 22:22:09 +02:00
tldr/pages/common/cdecl.md
Shou-Chi Chen 8bbb6de2f1
cdecl: add page (#14285)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2024-10-20 13:21:12 +02:00

20 lines
438 B
Markdown

# cdecl
> Compose and decode C and C++ type declarations.
> More information: <https://github.com/paul-j-lucas/cdecl>.
- Compose English phrase into C declaration, and create [c]ompilable output (include `;` and `{}`):
`cdecl -c {{phrase}}`
- Explain C declaration in English:
`cdecl explain {{C_declaration}}`
- Cast a variable to another type:
`cdecl cast {{variable_name}} to {{type}}`
- Run in [i]nteractive mode:
`cdecl -i`