Exercise 26. Project logfind

This is a small project for you to attempt on your own. To be effective at C, you’ll need to learn to apply what you know to problems. In this exercise, I describe a tool I want you to implement, and I describe it in a vague way on purpose. This is done so that you will try to implement whatever you can, however you can. When you’re done, you can then watch a video for the exercise that shows you how I did it, and then you can get the code and compare it to yours.

Think of this project as a real-world puzzle that you might have to solve.

The logfind Specification

I want a tool called logfind that lets me search through log files for text. This tool is a specialized version of another tool called grep, but designed ...

Get Learn C the Hard Way: A Clear & Direct Introduction To Modern C Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.