HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cdecl — Compose and decode C and C++ type declarations. More information: <https://manned.org/cdecl>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandcdeclclidecodetypecompose

Problem

How to use the cdecl command: Compose and decode C and C++ type declarations. More information: <https://manned.org/cdecl>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/cdecl

Revisions (0)

No revisions yet.