I'm trying to find a way to calculate the offset to a field in a structure.
I searched the Knowledge Base and found a macro that could be handy
#define offsetof(type, member) ((size_t) &(((type *) 0)->member))
type: Structure type
member: particular member of the structure
size_t: ??
I can't figure out what size_t is supposed to be (I'm new to Palm
programming. Actually, I'm fairly new to programming in general!). Any
help would be greatly appreciated. Further, if you have the patience an
explanation of the logic behind the operation would be nice.
Thanks in advance
Luca
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html