mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-21 21:22:06 +02:00
cdecl: add page (#14285)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
bc9598b02f
commit
8bbb6de2f1
1 changed files with 20 additions and 0 deletions
20
pages/common/cdecl.md
Normal file
20
pages/common/cdecl.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue