From 8bbb6de2f14823e1e48f5d354025743ca1b8e0be Mon Sep 17 00:00:00 2001 From: Shou-Chi Chen <87609690+jackiesogi@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:21:12 +0800 Subject: [PATCH] cdecl: add page (#14285) Co-authored-by: Wiktor Perskawiec --- pages/common/cdecl.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/cdecl.md diff --git a/pages/common/cdecl.md b/pages/common/cdecl.md new file mode 100644 index 0000000000..7d58891f3c --- /dev/null +++ b/pages/common/cdecl.md @@ -0,0 +1,20 @@ +# cdecl + +> Compose and decode C and C++ type declarations. +> More information: . + +- 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`