Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-21 00:18:03 +00:00
parent 1d688aded3
commit b361fd494d
14 changed files with 123 additions and 18 deletions

25
tldr/cdecl Normal file
View File

@@ -0,0 +1,25 @@
---
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://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`