1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/cdecl.md

21 lines
425 B
Markdown
Raw Normal View History

# cdecl
> Compose and decode C and C++ type declarations.
> More information: <https://manned.org/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`