Jump to content
  • Advertisement

Archived

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

Anachronism

What exactly is this line of code doing?

This topic is 5717 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!