I have this structure
Code:
struct hlv {
char name[20];
int num;
float range;
float vol;
float width; //range/vol
struct hlv *next;
};
/[code]
for which I can declare
[code]
struct hlv foundLink[10];
/[code]
but for which I cannot allocate memory
[code]
struct hlv *foundLink;
for (i = 0; i < 10; i++)
foundLink[i] = (struct hlv*) calloc(1, sizeof(struct hlv));
/[code]
Why not?