Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
OFFSETOF.cpp
Go to the documentation of this file.
1// checking for a working offsetof() in <stddef.h>
2
3
25#include <stddef.h>
26
27struct S
28{
29 int i [2][2];
30};
31
32int main ()
33{
34 return !(offsetof (S, S::i [0][1]) != offsetof (S, S::i [1][0]));
35}
#define i
Definition 17.names.cpp:126
int main()
Definition OFFSETOF.cpp:32
#define offsetof(class, member)