Skip to content
Justice Tech School

Writing Portable and Safe CPremium

Use fixed width types, check every return value, avoid gets and unbounded strcpy, free what you allocate, enable -Wall -Wextra -Werror and follow a style guide such as the CERT C standard.

This is a Premium lesson

All the basic lessons are free. Advanced and in-depth lessons, with every example, exercise and quiz, are included with a Premium subscription.

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.