Callback/Observer Pattern
The callback/observer pattern is a behavioral design pattern that defines a one-to-many notification relationship between objects in C. It allows an object, known as the subject, to notify its observers through pre-registered callbacks when changes occur, so that observers can react accordingly.