I came across the following code:
int H3I_hook(int (*progress_fn)(int*), int *id)
{
...
}
I don't understand the purpose of (int*)
at the end of the first argument?
Demystifying:
int (*progress_fn)(int*)
it can be interpreted like below:
int (*progress_fn)(int*)
^ ^ ^
| | |___________ pointer to integer as argument
| |
| pointer to any function that has V and takes ^
|
|__________________________return type an integer
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments