Hi

I have this function which returns a void pointer:

Code:
printf( "value is %d\n", (int*)getSomething(input) ) ;
printf( "value is %f\n", (float*)getSomething(input1) ) ;
This doesn't work because %d and %f do not expect a pointer. So I changed the code to

Code:
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 ?

thnx a lot!
Luca