Skip to content
KALANBLON
Intermediate1 h 50Free

C: files, errors and modules

Write C programs that survive the real world: read and write files, convert input without getting caught out, handle every error cleanly, then split a program into modules built with make. The final project is an inventory that saves itself to a file and is checked by tests.

Start the course

0 / 6 chapters completed

What you'll be able to do

  • Read and write text files with fopen, fgets, fprintf and fclose
  • Convert and validate input with strtol and check every return value
  • Release every resource on every error path
  • Split a program into modules with headers and a Makefile

Course outline