is there any who can help me ? what does the following instruction in rad_respond(*request,fun) (in radiusd.c) mean : (*fun)(request); Thank you Ashola --------------------------------- The fish are biting. Get more visitors on your site using Yahoo! Search Marketing.
On March 7, 2007 2:04:32 AM -0800 ashola ashola <ashola2007@yahoo.com> wrote:
is there any who can help me ?
what does the following instruction in rad_respond(*request,fun) (in radiusd.c) mean : (*fun)(request);
call fun with arg request. or was your question something else?
yes, but fun isn't a function it is rather a variable of type RAD_REQUEST_FUNP and the execution of the instruction (*fun)(request) do the same thing as a function execution Please help Frank Cusack <fcusack@fcusack.com> wrote: On March 7, 2007 2:04:32 AM -0800 ashola ashola wrote:
is there any who can help me ?
what does the following instruction in rad_respond(*request,fun) (in radiusd.c) mean : (*fun)(request);
call fun with arg request. or was your question something else? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html --------------------------------- We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list.
Previously ashola ashola wrote:
yes, but fun isn't a function it is rather a variable of type RAD_REQUEST_FUNP and the execution of the instruction (*fun)(request) do the same thing as a function execution
fun is a pointer to a function which you can call just like the function itself. I suggest reading a good C book :) Wichert -- Wichert Akkerman <wichert@wiggy.net> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple.
participants (3)
-
ashola ashola -
Frank Cusack -
Wichert Akkerman