Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to decipher C/C++ function pointer typedefs

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

like image 710
knittl Avatar asked Jan 19 '23 10:01

knittl


1 Answers

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

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

like image 145
iceaway Avatar answered Jan 31 '23 04:01

iceaway