This is unionTest.c in view mode; [Download] [Up]
struct TokenStruct {
union {
char *string;
int offset;
} w1;
};
int main()
{
struct TokenStruct tokenStruct;
tokenStruct.w1.string = "abc";
return 1;
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.