Explains complicated C/C++ declarations in plain English
Cdecl composes compilable C declarations and typecasts from descriptive English phrases, and can also explain a complicated typecast or declaration. It handles ANSI C, C++, pre-ANSI C, and K&R C, and has TAB completion of keywords and line editing and history (provided by the GNU readline library).
可以把複雜的 C/C++ 語言宣告語法轉成翻譯 translate plain English human readable understand 解讀
C pointer
cd /usr/ports/devel/cdecl/ ; make install clean ; rehash
Example:
# cdecl
cdecl> explain int (* (*f)())[10];
Wednesday, December 7, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment