I'm writing a program that needs string input into a struct, but for some reason it is being skipped over.
Here's the bulk of the code.
The ... obviously represented other functions and the function that the code is in. When I run the program, it just prints the two printf statements and gives me no time to input a string. What's wrong? Thanks for any help.Code:struct ConfigInfo { char VendorName[20]; char Description[200]; int NumKeys; int NumLicenses[10]; int NumMemos[10]; char Expiry[10]; }; . . . struct ConfigInfo *temp; temp=malloc(sizeof(struct ConfigInfo)); printf("\nEnter the Vendor Name: "); fgets(temp->VendorName,20,stdin); printf("\nEnter the Reason for sending the key: ");