hi guys looking to improve/check some code!
trying to build a structure called read data

void read_data (struct comp_detail * pt_comp_detail)
{
struct comp_detail new;
printf("\nEnter Competitors Name: ");
gets(name);
printf("\nEnter Elapsed Time: ");
scanf("%.2f", &new.etime);
printf("\nEnter The number of faults: ");
scanf("%d", &new.faults);
return(new);
}