Jserv 的開發工具與規格內 內提到一個可以用轉換工具,可以將C code 宣告轉換成英文描述,跟英文描述轉換成code宣告格式,方便我們解讀文章所是如何用說的將宣告描述出來 透過cdecl

Install

1
sudo apt-get install cdecl

Example

En To Code

1
2
3
cdecl> declare a as array of pointer to function returning pointer to function returning pointer to char
char *(*(*a[])())()

Code To En

1
2
3
cdecl> explain char *(*fptab[])(int)
declare fptab as array of pointer to function (int) returning pointer to char