You should have the files getline.c, getline.h, and makefile. The file getline.c contains most of the code for the getLine function.
Write a main program in getlinetest.c which uses getLine to read a line from standard input and print it out.
Recall the getLine returns a line with no characters when an end of file is reached and returns NULL when an error occurs. In each of these cases the main program should print an appropriate error message.
Your program should start by printing a line indicating your name. It should then use getLine to get a line and either print it out or print an appripriate error message.
Do not modify getLine for this part of the assignment.
Run lint and make sure you understand all of the messages produced.
Test your function using the main program from Part 0. You should not have to modify this main program.
Be sure that you use cut and paste. Do not send your results as an attachment which assumes a particular type of mail reader.
Note that you can create an input line of length 0 by type CTRL-D when the program expects input. To type CTRL-D, hold down the Control key and push the D key.
Note: Do not change the value of INIT_ALLOC in the function.