Archived

This topic is now archived and is closed to further replies.

What exactly is this line of code doing?

This topic is 5379 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello... I''m going through some code in this "Programming Role Playing Games With DirectX" book I just picked up... This little section of code doesn''t have much explanation and I don''t understand exactly what this line is doing: void (*Function)(); Looks odd to me. Here is the full few lines: typedef struct sProcess{ void (*Function)(); sProcess *Next; } sProcess; Any explanations would be appreciated. Thanks...

Share this post


Link to post
Share on other sites
That's a linked list of function pointers. The purpose here is to save a list of functions (pointers to them) with that signature type (void blah (/*no args*/) {}) for calling use later on. See petewood's link for all relevant questions.

[edited by - Thunder_Hawk on March 23, 2003 12:35:24 PM]

Share this post


Link to post
Share on other sites