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("
trans_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("
fund_price process_input_records ==== : : %s",what_if_var[line_count]->price);
return 0;
}
I am facing error here, can any one please tell me what is the mistake i done here?
Function argument assignment between types "struct {...}*
" and "struct {...}(*)[100]
" is not allowed.
Expecting pointer to struct or union.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…