using void* pointer to function

Joined
Jan 24, 2012
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top