title: Iterating through a column in a CSV file in C
body: <p>Not sure how to get loop through the columns only</p>
  
  <p>Given the function header 
          <code>double getMin(char csvfile[], char column[]);</code> 
  return the minimum score of the specified column. </p>
  
  <p>When implementing the above functions, you can assume csvfile is a valid CSV file and it can always be opened for reading, and the column parameter is a short form of the column heading and it starts with a letter (P for Participation, C for Challenge, and L for Lab) followed by a chapter number, a dot, and a section number. For example,  P5.6, C5.4 and L5.25 represent the column headings 5.6 – Participation, 5.4 – Challenge, and 5.25 – Lab respectively. You shall return -2.0 (double) or 2 (integer) if the corresponding column name or student name does not exist, and -1.0 or 1 if the corresponding column is optional.</p>
  
  <p>Ex. file-</p>
  
  <p>Last name,First name,5.1 - Participation (11),5.2 - Participation (20), 5.1 - Challenge (0),5.2 - Challenge (9), 5.25 - Lab (10)
  Alvarez,Abel,100,100,100,100,100
  Mendez,Charlene,0,0,0,0,0
  Zimmerman,Drew,100,100,100,100,60</p>