PROJECT DOSSIER // [C POOL — DAY 06]VIEW SOURCEBACK TO PROJECTS →

01 // PROJECT AT A GLANCE

C POOL — DAY 06

C

Re-coding the C string library, function by function.

A whole day rewriting the tools every other language hands you for free: copy, compare, search, uppercase. The point is not the result but the journey: afterwards you know exactly what happens when you call a function on a string, and why some of them are dangerous.

Reimplementing strcpy, strncpy, strcmp, strncmp, strstr, revstr and the case functions, backed by dedicated unit tests.

PRIMARYC
DELIVERYTEAM RECORD
VERIFICATIONCriterion
SOURCEINSPECTOR READY
MEDIA ATTACHMENTS (Images, Photos, Videos)

03 // KEY OUTCOMES

  • Understanding from the inside why strncpy is a treacherous function
  • First unit tests written, in the very first week

BEYOND THE BRIEF

  • Four Criterion test files written when the day did not yet require them

04 // SOURCE TREE

READING SOURCE…