In article <1991Feb16.232713.6001 at runx.oz.au> richardm at runx.oz.au (Richard Murnane) writes: >Hi all, >Does anybody know a decent macro to find the offset of an element >in a structure? How about: #define offset(str,el) ((char*) &((str*)NULL)->el - (char*) NULL)