Folks,
This structure padding issue is bothering me now, could
not locate a satisfactory answer on clc, so here it goes...
I have a structure, given below:
typedef struct {
int flag;
char keys[3][9];
char padding[??];
} foo;
I need to fill in the size of padding array here so as to
make the entire structure size a multiple of 8. Is there
a way in which I can calculate the padding ? This structure
will be used on AIX 5.* and RHL.
Thanks in advance.
Cheers,
Amar
--
If you don't want to succeed, nobody will try to stop you.
This structure padding issue is bothering me now, could
not locate a satisfactory answer on clc, so here it goes...
I have a structure, given below:
typedef struct {
int flag;
char keys[3][9];
char padding[??];
} foo;
I need to fill in the size of padding array here so as to
make the entire structure size a multiple of 8. Is there
a way in which I can calculate the padding ? This structure
will be used on AIX 5.* and RHL.
Thanks in advance.
Cheers,
Amar
--
If you don't want to succeed, nobody will try to stop you.
Comment