How to access a structure member in a function that get it as void* type?
- by Ahmad
I want to have a function that accepts different type of structures as argument.
So, since I don't have a specific type, I have to use void*. Now question is: when I pass a structure to this function, how can I access a known member of this structure inside the function? Specifically, I know that all structures have str1 as a member and I want,…