This means that Callback- this is a new name for the type: a pointer to a function that returns an int and accepts two parameters of the type "const pointer to void" and "int".
For function f:
int f(void * const param, int s)
{
}
Callbackcan be used to store a pointer to f:
Callback c = &f;
A function fcan later be called via a pointer without directly accessing its name:
int result = c(NULL, 0);
The name is fnot displayed at the dial peer .
source
share