mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
518 B
Plaintext
26 lines
518 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|