[Ilugc] Structure alignment & Internal Paddin
- From: binand@xxxxxxxxx (Binand Sethumadhavan)
- Date: Mon Aug 14 03:27:40 2006
On 13/08/06, Binand Sethumadhavan <binand@xxxxxxxxx> 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
Other related posts: