Hi,
I saw a declaration as below
typedef void (*P)
(FORMAT_INFO *fmt);
what is this declaration for?
thank you so much
best regard,
paul
As i see it *P is a pointer to a function (maybe a simple variable) and gives the void function a parameter and the function returns than a pointer to a variable declared as a typedef format called FORMAT_INFO.
See ya
Andy
"...gives the void function a parameter and the function returns..."
No: by definition, a void function doesn't return anything, does it?
P is a pointer to a function that takes a singe argument of type FORMAT_INFO, and returns nothing.
Yeah, your right The void was not in my mind..... sorry about that
View all questions in Keil forum