1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help with passing a pointer to a function to another function

Discussion in 'C' started by csepraveenkumar, Mar 20, 2011.

  1. csepraveenkumar

    csepraveenkumar New Member

    Joined:
    Mar 19, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    how is the pointer to a particular function passed in the following code
    Code:
    qsort((void **)lineptr,0,nlines-1,(int(*)(void*,void*))(numeric?numcmp:strcmp));
    is it the normal way to pass a pointer to another function i.e. by writing the name of the function after what seems to be the declaration of the function?
     

Share This Page