Question: ( 1 5 pts ) Write a C function called fileLineParser ( ) that accepts a pointer to a FILE ( name the parameter inputFileStream
pts Write a C function called fileLineParser that accepts a pointer to a FILE name the parameter inputFileStream and an array of struct studentRecords name the parameter arrStudentRecords The function reads the entire csv file linebyline, parses each line, and stores a copy of each value into the array of struct studentRecords. The function returns the number of records successfully parsed and stored in the array.
precondition: inputFileStream NULL; all lines in the file are well formed in the required format.
The struct studentRecord is defined as follow:
typedef struct studentRecord
char name; This will be used to store the first and last name
int ID; This will be used to store the students ID number
char major; This will be used to store the students major
StudentRecord;
Assume that each record in the csv input file is formatted as follows:
Student name,ID number,majo
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
