Article View: comp.std.c
Article #801offsetof: what sort of structure-members are allowed
From: Alan Myrvold
Date: Fri, 20 Oct 1989 19:52
Date: Fri, 20 Oct 1989 19:52
18 lines
859 bytes
859 bytes
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
-------------------------------------------------------------------
Technical Details
Message-ID:
<17420@watdragon.waterloo.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watdragon!violet!ajmyrvoldShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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