3 ms·
> function pointer type declarations inside anonymized unions inside parameter definition lists Could you please provide a code snippet of this kind? Hard for
by bhasi 9y ago
> function pointer type declarations inside anonymized unions inside parameter definition lists
Could you please provide a code snippet of this kind? Hard for me to visualize otherwise. Thanks.
- pjmlp 9y agoSure, lets do it in pieces typedef int (*my_func_ptr_t)(const void*,const void*); typedef union { my_func_ptr_t func_ptr; int* data; } my_union_t; void my_func (my_union_t param); // Now exploiding it void my_func (union { int (*func_ptr)(const void*,const void*); int* data; } param); Of course this is very basic example, but there is hope to make it into an IOCC entry.