B
bnoordhuis
Consider this:
int foo(int *a, int *b);
int (*bar)(void *, void *) = (void *)foo;
How legal - or illegal - is the typecast and are there real-world
situations where such code will cause trouble? I don't mean trouble
like in 'not compiling' but trouble like in 'crashing hard'.
int foo(int *a, int *b);
int (*bar)(void *, void *) = (void *)foo;
How legal - or illegal - is the typecast and are there real-world
situations where such code will cause trouble? I don't mean trouble
like in 'not compiling' but trouble like in 'crashing hard'.