using void* pointer to function

Discussion in 'C Programming' started by izik, Jan 24, 2012.

  1. izik

    izik

    Joined:
    Jan 24, 2012
    Messages:
    1
    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
    izik, Jan 24, 2012
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ollej Reemt
    Replies:
    7
    Views:
    494
    Jack Klein
    Apr 22, 2005
  2. Stig Brautaset

    `void **' revisited: void *pop(void **root)

    Stig Brautaset, Oct 25, 2003, in forum: C Programming
    Replies:
    15
    Views:
    767
    The Real OS/2 Guy
    Oct 28, 2003
  3. noblesantosh@yahoo.com

    what is the difference, void func(void) and void fucn()

    noblesantosh@yahoo.com, Jul 22, 2005, in forum: C Programming
    Replies:
    5
    Views:
    808
    S.Tobias
    Jul 22, 2005
  4. Giannis Papadopoulos

    Function pointer to void function and int function

    Giannis Papadopoulos, Sep 5, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,209
    Barry Schwarz
    Sep 5, 2005
  5. PencoOdStip@gmail.com
    Replies:
    1
    Views:
    384
    Victor Bazarov
    May 23, 2007
Loading...

Share This Page