|
The problem that I see is that you are passing the struct by value. You need to pass by reference.
ie struct_name* _name_
then when you access the struct in the function you need to use pointer reference
_name_->structmember
you might want to read up on that. If I'm wrong someone can correct me.
|