Practice · 3 of 3
Bad Line Scanner
CHALLENGE
Difficulty: beginner+25 XP
Implement int count_bad(const char *path) counting lines that do NOT start with 'ok' (a line starting with "ok" is fine). Missing file returns -1.
Press Submit to check your solution.
Back to lesson: Practice: Persistence Layer