【下载】cdecl 初学者必备解析C语言声明工具
CDECL.zip
(13.59 KB)
Read me first:
[] means optional; {} means 1 or more; <> means defined elsewhere
command:
declare <name> as <english>
cast <name> into <english>
explain <gibberish>
english:
function [( <name>)] returning <english>
array [<number>] of <english>
pointer to <english>
<type>
type:
[{<modifier>}] <C-type>
{<modifier>} [<C-type>]
<sue> <name>
name is a C identifier
gibberish is a C declaration
C-type is int, char, double or float
modifier is short, long or unsigned
sue is struct, union or enum
examples: ^Z to Terminate
explain float (*(*(****(*(*foo())())[5])())())()
declare signal as function (sig_args) returning pointer to function
(other_args) returning int
[ 本帖最后由 lonmaor 于 2009-9-16 16:11 编辑 ]