2 ms·
>Ugh, the C syntax makes it so hard to parse, humans or machine. As a generalization I completely disagree. But for function pointers specifically, yes, they a
by constantcrying 4y ago
>Ugh, the C syntax makes it so hard to parse, humans or machine.
As a generalization I completely disagree. But for function pointers specifically, yes, they are easily the worst part of the C syntax.
>void(signal(int, void ()(int)))(int);
That's just declaring signal as function (int, pointer to function (int) returning void) returning pointer to function (int) returning void, DUH.
Thank you cdecl.org
But notice how absolutely ugly it is that the final return type comes first, that is due to the C function signatures.