I modified the function:
Code:
struct comp ***compx(const char name[]);
so in the main():
Code:
struct point ***pv = compx(//name of component);
if((*pv)[0])
{
int e = 0;
for(;(*pv)[[0]->code > e++;)
{
printf("\nCode of the component: %d\n", (*pv)[i]->code);
printf("Name of the component: %s\n", (*pv)[i]->name);
printf("Dessciption of the component: %s\n", (*pv)[i]->des);
printf("Disponibility of the component: %d\n\n", (*pv)[i]->disp);
}
}
The program returns the error when I try to access only to (*pv)[0]->code.