typedef struct some_struct
{
int i;
short k,
int m;
char s[1];
} some_struct_t;
Assuming 16 bit or 32-bit alignment, can I assume that
s always gets 4 or 8 bytes of allocation due to padding
in the following? (I.e. s is either 4 or 8 characters long)
some_struct_t *my_struct;
my_struct = malloc(sizeof(s ome_struct_t));
BTW, this is on a PowerPC architecture.
/Why Tea
{
int i;
short k,
int m;
char s[1];
} some_struct_t;
Assuming 16 bit or 32-bit alignment, can I assume that
s always gets 4 or 8 bytes of allocation due to padding
in the following? (I.e. s is either 4 or 8 characters long)
some_struct_t *my_struct;
my_struct = malloc(sizeof(s ome_struct_t));
BTW, this is on a PowerPC architecture.
/Why Tea
Comment