pasando matriz de estructura como un parámetro de función
typedef struct What_if
{
char price [2];
} what_if ;
what_if what_if_var[100];
int format_input_records();
int process_input_records(what_if *what_if_var);
int format_input_records()
{
if (infile != NULL )
{
char mem_buf [500];
while ( fgets ( mem_buf, sizeof mem_buf, infile ) != NULL )
{
item = strtok(mem_buf,delims);
strcpy(what_if_var[line_count].trans_Indicator,item) ;
printf("\ntrans_Indicator ==== : : %s",what_if_var[line_count].price);
process_input_records(&what_if_var);
line_count=line_count+1;
}
}
}
int process_input_records(what_if *what_if_var)
{
printf("\nfund_price process_input_records ==== : : %s",what_if_var[line_count]->price);
return 0;
}
Estoy enfrentando un error aquí, ¿alguien puede decirme cuál es el error que cometí aquí?
Asignación de argumento de función entre tipos "struct {...}*
"y"struct {...}(*)[100]
" No se permite
Esperando puntero a estructura o unión.