Problem in static structure array in C

Hi,

I have a following problem in C.

I have a function A in which I used to call another function (function B) and pass an array of values through array variable by using below:-

foo=functionB(array);

In functionB, i used to just return some "values" (e.g return num;) in order to pass the value to foo variable.

However, now I am trying to return several values to different array of foo variable.

foo[NUMBER]=functionB(array).

So, in my case, I have to create a struct in order to return struct all together for respective members. However , I came across errors of referring members in struct.

Basically, I try something below:-

#define NUMBER 10

struct boo{
static int min;
static int max;
}me[NUMBER];

In function A, i have
for (i=0;i<NUMBER;i++)
foo[i]=functionB(me[i], array); /* which is supposed to pass the array value and refer the struct me [i]members*/

In my function B, i try to have

double function(double me[],double array){
int m;

me[m].min=i*1;

me[m].max=i*2;

return 0;
}

But the error returned to me is
error: request for member �min' in something not a structure or union
error: request for member �max' in something not a structure or union

Please advise. Thanks.

double function(double me[],double array){
int m;

me[m].min=i*1;

me[m].max=i*2;

return 0;
}

But it makes sense, doesn't it? You are trying to treat something that is not a structure as if it did: me is a double array, according to the function definition:

double function(double me[],double array);