Subject: Re: Question regarding the array of size 0.
To: Lord Isildur <firstname.lastname@example.org>
From: John Franklin <email@example.com>
Date: 03/30/2001 10:19:29
On Fri, Mar 30, 2001 at 09:54:20AM -0500, Lord Isildur wrote:
> which all begs the question... what is the point of an array of size
> zero? it's just memory. you want a name that youre not spending any space
> on storing? cook up a macro or something..
You can then read in a block of memory from a file or socket, cast the
buffer to that data type and have the header and data all accessable
via the same structure while leaving the sizeof(struct foo) equal
to the header's size.
ICBM: N37 12'54", W80 27'14" Z+2100'