Learn C Programming

Lesson 7 of 8 · The Preprocessor, Headers and Multi File Builds

Module 15 · The Preprocessor, Headers and Multi File Builds

Project: Split One File Into a Real Project

ProReading

The program reads log lines from stdin until the input ends. A line it can use starts with a time, HH:MM:SS, then a space and one of four levels in capitals: DEBUG, INFO, WARN or ERROR. The rest of the line is the message, which the summary never reads. Such a line is timed. Every other line is skipped: an empty line, a time out of range, a level in lower case.

Checking what this lesson needs for you…

What is inside Project: Split One File Into a Real Project

  1. The program to split
  2. Sample input
  3. Sample output
  4. The four files
  5. Requirements
  6. How to check it
  7. Splitting your own project instead
  8. Submission format
  9. Marking rubric
  10. Submission checklist