Tool to decipher C/C++ function pointer typedefs

北城以北 提交于 2019-12-18 13:36:49

问题


I remember once seeing a website, which deciphered complex C++ typedefs including function pointers returning function pointers to functions which return an array with …

It would turn such definitions into readable English text: »Pointer to function, returning an array of int-pointers, taking a long and a callback function (taking an int) as parameters«. (something along that lines)

typedef int * (*f)(long, void (*)(int))[];

Anybody remember that tool/website? Any hints greatly appreciated


回答1:


I think you are looking for https://cdecl.org/.

You can find the program itself at https://github.com/ridiculousfish/cdecl-blocks




回答2:


The tool is also available under http://cdecl.org



来源:https://stackoverflow.com/questions/6437333/tool-to-decipher-c-c-function-pointer-typedefs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!