Feb 24, 2004 #1 Jodi999 Programmer Joined Feb 24, 2004 Messages 10 Location 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.
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.
Feb 24, 2004 #2 chipperMDW Programmer Joined Mar 24, 2002 Messages 1,268 Location US 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 Upvote 0 Downvote
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