hello, i hope my english is understandable
im making a c adt based program and i need to use a void* pointer fucnion and then assign him to a specific type function, for example
i have the funtion "float scan_float() " which scans a float and returns it
but i cant call her directly, and i cant use float-pointer-to-fuction because it needs to be able to work with any type.
i think it will work somehow with
void* (*example)(); i just cant get it right
im making a c adt based program and i need to use a void* pointer fucnion and then assign him to a specific type function, for example
i have the funtion "float scan_float() " which scans a float and returns it
but i cant call her directly, and i cant use float-pointer-to-fuction because it needs to be able to work with any type.
i think it will work somehow with
void* (*example)(); i just cant get it right