G
Grey Alien
If I have a struct declared as :
struct A
{
double x ;
char name[LONG_ENOUGH];
struct Other other ;
void * ptr ;
};
And I have an array of these structs, how can I determine the number of
items in the array. I need to be able to determine this since I have a
function with signature:
void foo(struct A array_[])
{
//Process each of the elements in the passed array
}
struct A
{
double x ;
char name[LONG_ENOUGH];
struct Other other ;
void * ptr ;
};
And I have an array of these structs, how can I determine the number of
items in the array. I need to be able to determine this since I have a
function with signature:
void foo(struct A array_[])
{
//Process each of the elements in the passed array
}