Hi,
I'm curious about something...
sometimes in code I'll people use malloc on a structure, and they use '*my_struct' instead of just 'my_struct'... why is that?
Also, when returning a pointer to a structure, I've seen the structure defined as 'static MY_STRUCT *my_struct;', again, why is that?
Thanks
-Jase
p.s. Anyone have the link to a site that explains pointers, linked lists, and memory allocation in detail? Thanks.



LinkBack URL
About LinkBacks


