Its not on Standard C, I was trying to develop application in C. Here is the scenario:Its like a power mode implementation of a processor, so that when the processor, wakes from sleep, an interrupt will be generated, so that if i have an event callback at that point i could wake my other module to do its process.For this, I m trying to implement linkedlist using static allocation for accessing memory pool, so that when a callback is registered, it is stored in the memory pool. So when a callback is triggered, it sends a event notification to the modules which is registered.
But i m not sure how to implement it. Kindly provide a way to implementation
Do you mean signals? Like when you get a crash or a divide by zero? Here is a posix example of trapping signals: