CS140 -- Midterm Exam: Answer sheet for Q16

Name: ___________________________________________

#include < stdio.h >
#include < string.h >
#include "fields.h"

main(int argc, char **argv)
{
    /* Make variable declarations */







    /* Make sure you have the right number of command line arguments */







    /* Make sure n is a legal value */







   /* Open the file, allocate your array to hold the lines */






   
   /* Read in the first n lines (or the entire file if it has < n lines */









   /* Print out the first n lines to the file in reverse order */






}