On Sat, 6 Sep 2003 01:42:59 -0700 John-Mark Gurney <gurney_j_at_efn.org> wrote: > Alexander Leidinger wrote this message on Sat, Sep 06, 2003 at 10:33 +0200: > > struct { > ^ try moving foo to here. > > int tag; > > char obj[]; > > } foo; > ^^^ from here. > Uhm... yes, sorry. ---snip--- % <marcel.c #include <stdio.h> struct foo { int tag; char obj[]; }; int main(void) { struct foo bar; printf("%d\n", sizeof(struct foo)); printf("%d\n", sizeof(bar)); return 0; } % ./a.out 4 4 ---snip--- Bye, Alexander. -- Yes, I've heard of "decaf." What's your point? http://www.Leidinger.net Alexander _at_ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7Received on Fri Sep 05 2003 - 23:56:30 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC