Practice ยท 3 of 3
Bad Line Scanner
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.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Persistence Layer