lmlPezlml

Members
  • Content count

    10
  • Joined

  • Last visited

Community Reputation

101 Neutral

About lmlPezlml

  • Rank
    Member
  1. Passing pointer of a struct to a function

    I might have the wrong idea, but have you looked at inheritence? It's poor form to be passing void pointers around. If you're going to have a function that operates on user defined structures, you might want to declare a base class which has the basic properties that you want to operate on, and let users define subclasses of it. This way you can pass your structure around, and if your users want to create a subclass then they can, and add stuff to it, whilst still allowing your function to work as normal on it.