--- In [email protected], "Indika Bandara" <[EMAIL PROTECTED]> wrote: > > thanks nico, > > well what im asking is similar to signals but not exactly that. > for example when a signal sent the signal handler is called > without any explicit call to it.(may be libc handles that)
This is done by the OS itself, it has nothing to do with any libraries. > what i want is a similar thing, rather than a signal(which is > OS specific) if i want some function to 'occur' rather than > explicitly calling it when some event happens. The easiest way I can think of (this is not a topic I have dived into very deeply yet) is to compile the function you might want to call such that you get a shared library; this can then be loaded and invoked by (almost) every other application. > found this article which seems to answer the question quite well > http://en.wikipedia.org/wiki/Callback_(computer_science) <snip> Thanks, I'll read it as soon as I have the time to do so. Regards, Nico
