ftp.nice.ch/Attic/openStep/developer/bundles/GDBbundle.1.0.s.tgz#/GDBbundle-1.0.s/debug/gdb/gdb/tests/unionTest.c

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.