Learn C Programming

Lesson 8 of 9 · Dynamic Memory

Module 14 · Dynamic Memory

Project: A Contact List That Grows on Demand

ProReading

The program reads stdin one line at a time with fgets, and each line holds one command. Words are separated by one or more spaces. A word is any run of characters without a space. The input holds at most 1,000 lines of at most 200 characters each. So a char line[LINE_LEN] with LINE_LEN 256 holds any line with its newline and its zero. The input may be empty, and its last line may have no newline.

Checking what this lesson needs for you…

What is inside Project: A Contact List That Grows on Demand

  1. The commands
  2. The end of the input
  3. Requirements
  4. Sample input
  5. Sample output
  6. Checking the memory
  7. Optional stretch: a list kept in name order
  8. Marking rubric
  9. Submission checklist