[Ilugc] Structure alignment & Internal Paddin
Binand Sethumadhavan
binand at gmail.com
Sun Aug 13 23:57:25 IST 2006
On 13/08/06, Binand Sethumadhavan <binand at gmail.com> wrote:
> If you at a later time need another of these structs, you need to
> define the struct all over again (for example, the fooptr above). It
> is a valid C structure, but its usefulness is dubious.
I forgot to mention that anonymous structures are used mostly to
define new types via typedefs, like:
typedef struct {
int something;
char something_else;
} mystruct_t;
And then:
mystruct_t hello, world;
mystruct_t *fooptr;
etc.
Binand
More information about the ilugc
mailing list