Hi
I have this function which returns a void pointer:
This doesn't work because %d and %f do not expect a pointer. So I changed the code toCode:printf( "value is %d\n", (int*)getSomething(input) ) ; printf( "value is %f\n", (float*)getSomething(input1) ) ;
When I execute the code I get an Bus Error. Why doesn't this work and what is the solution ?Code:printf( "value is %d\n", *(int*)getSomething(input) ) ; printf( "value is %f\n", *(float*)getSomething(input1) ) ;
thnx a lot!
Luca