Registering a callback function simply means that you are organizing an external object to call your function.
This can happen later, or it can happen right away. A direct example is qsort . It is declared as follows:
void qsort(void *base, size_t nel, size_t width, int (*compar)(const void *, const void *));
To use it, you must pass a pointer to a function that compares elements - a callback.
This was a simple example, but as a rule, “registering a callback” means passing a pointer to a function to someone who will call it for you in the future.
source share