Path: utzoo!utgpu!watmath!watdragon!violet!ajmyrvold From: ajmyrvold@violet.waterloo.edu (Alan Myrvold) Newsgroups: comp.std.c Subject: offsetof: what sort of structure-members are allowed Message-ID: <17420@watdragon.waterloo.edu> Date: 20 Oct 89 19:52:36 GMT Sender: daemon@watdragon.waterloo.edu Lines: 18 I hope that someone could clarify my fuzzification. Consider the structure : struct S { union { long i; struct {int i; int j; } b; } u; } s; According to the draft ANSI standard, can the second argument of offsetof be as complicated as I like, e.g. is offsetof(struct S,u.b.j) allowed ??? always ??? ------------------------------------------------------------------- Alan Myrvold ajmyrvold@violet.waterloo.edu -------------------------------------------------------------------