Joerg Sonnenberger wrote: > That's still not necessarily optimal, depending on the padding rules of > the platform. You want to do offsetof(s, m[0]) + n * sizeof((s*)NULL->m[0]). Using m[0] inside offsetof is non-standard but I think this will work: offsetof(s, m) + n * sizeof((s*)NULL->m[0]). Alex