Possible Duplicate:
Typedef function pointer?
Could you please help me understand the meaning of this typedef and how to use it?
typedef void (*__handler)(int)
without the “typedef”, I know the rest is a function pointer. Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This defines a type name for the function pointer. Using this,
__handleris now a type alias for a pointer to a function that takes anintand returnsvoid.