Skip to the task
Layout
Back to classic view

You are looking at lesson 11. Your place is still lesson 1, task 1: Algorithm.

CHECKTask 18 of 20 · step 6: Drills: check yourself

What's missing?

The function write_report opens a file, fprintf, fclose, and always returns OK. What must it check?

Stuck?

fopen == NULL → CANNOT_OPEN; fprintf < 0 or fclose != 0 → WRITE_FAILED.