Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Skill

C for Systems Programming

Write, build and debug small C programs that call the C library and Linux system interfaces safely.

Intro1 roadmap

4 objectives 6 steps about 135 min

Check what you know

The lessons are coming later. The knowledge check is ready now.

Take the knowledge check

This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.

Learning objectives

  • Compile, link and run multi-file C programs with gcc and a Makefile, with warnings and sanitizers enabled.
  • Use pointers, arrays, strings, structs and heap allocation correctly, and explain stack versus heap lifetime.
  • Check return values and errno from library and system calls and report errors with perror or strerror.
  • Locate memory errors such as buffer overflows and use-after-free with AddressSanitizer, Valgrind or gdb.

Lesson plan

6 steps, about 135 min · 0 of 5 lessons available so far

  1. From source file to running program: preprocessing, compiling and linking Concept · 20 min · coming later
  2. Pointers, arrays and strings without the folklore Concept · 25 min · coming later
  3. Lab: a growable array with malloc, realloc and free, built by make Lab · 30 min · coming later
  4. Error handling the Unix way: return codes, errno and perror Worked example · 20 min · coming later
  5. Lab: catch an overflow and a use-after-free with ASan and gdb Lab · 25 min · coming later
  6. Check: read, build and fix a small C utility Knowledge check · 8 questions

Practise it

Write a C version of wc that takes file paths as arguments, reports unreadable files with errno messages, builds with a Makefile using -Wall -Wextra -fsanitize=address, and passes a provided test script.

Build it from scratch

Practice builds that exercise this skill by re-creating a real technology.

Browse 38 tutorials that practise it

References

Hard prerequisites

Unlocks

Nothing depends on this skill yet.

On these roadmaps

Progress and evidence for this skill are shared across all of them.