you are right, thank you for pointing me at this. But it is still a very strange programming style, isn't it?
Henk
John Marshall wrote:
yeah, OffsetOf just fits perfectly to StrNCopy and StrLen and all this stuff...Only the address of the field is used; the contents are never accessed. It's a revolting, confusing, and non-portable [1] way of writing offsetof [2].John [1] Of course using DmWrite means you're only interested in Palm OS, and this works everywhere on m68k Palm OS, so the non-portability is not particularly an issue here. [2] If you think I mean OffsetOf, see http://groups.google.com/groups?selm=qkdeKqSlAHA.221%40www.massena.com
--
-------------------------------------------------------------------------
[EMAIL PROTECTED] www.metaviewsoft.de
<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946">
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg"></A>
-------------------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/