Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C Struct

Status
Not open for further replies.

Jodi999

Programmer
Feb 24, 2004
10
US
Has anyone ever seen a C struct like the following:

typedef struct {
UINT32 process_id;
UINT32 sig_num;
void(*callback)(int device_num);
} UDM_NOTIFY;

I don't understand that the 'void...' line is.

Thanks for any help.
 
It has nothing to do with the struct.

It's a variable named "callback". Its type is "pointer to a function with a single int parameter and a void return type".

Yes, the syntax is confusing; try deciphering a pointer to a function that takes a pointer to a function :-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top