thanks everyone. the array is global in a glob.h file.
insert
Code:
typedef struct
{
float time
float key
.
.
}Key_Type;
originally also declared in same file
extern Key_Type huge key_inputs[2600];
I then declared in another file where key_inputs is used key.c
key_type huge key_inputs[2600];
this worked up to 1900 elements. throws a segmented boundary error at 2600. that hwy I tried to use malloc. Now I have
in glob.h
extern Key_Type key_inputs[2600];
and in key.c I have
key_type key_inputs = (key_type *) malloc(2600 *sizeof (key_type) ;
if (null==key_type)
{
fprintf(stderr, "malloc failed\n");
return (-1);
}
Now this gives me 2 errors 1 warning
key.c - error c2040: key_inputs different level of indirection
syntax error c2143 missing ";" before if
warning: c4307: "*": integral constant overflow
any help on any of the two way is appreciated. need to get this working for an array of 2600 elements with with huge or malloc. huge worked up to 1900.
thanks