Vladimir Grigoriev
2008-05-08 12:15:01 UTC
I may specify an array of undefined number of elements as a function
parameter. For example,
int main( int argc, char * argv[] );
Can I define a typedef for such array inclosed in a structure? Something as
typedef struct
{
size_t count;
Some_Type array[];
} MyTypeDef;
I have a memory extend that have such structure. However I don't know the
number of the array elements. This extend is passed from a module written on
another language.
Vladimir Grigoriev
parameter. For example,
int main( int argc, char * argv[] );
Can I define a typedef for such array inclosed in a structure? Something as
typedef struct
{
size_t count;
Some_Type array[];
} MyTypeDef;
I have a memory extend that have such structure. However I don't know the
number of the array elements. This extend is passed from a module written on
another language.
Vladimir Grigoriev