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

01 // PROJECT AT A GLANCE

C POOL — DAY 08

C

Asking the system for memory — and remembering to give it back.

Until now, the size of everything was known in advance. This day teaches you to claim memory during execution, when you only find out at the last moment how much you will need. It is powerful and comes with no guardrails: forgetting to give it back, or asking for too little, is paid for immediately.

Dynamic allocation with malloc: string duplication, parameter concatenation, splitting into a word array and base conversion.

PRIMARYC
DELIVERYTEAM RECORD
VERIFICATIONgcc/g++
SOURCEINSPECTOR READY
MEDIA ATTACHMENTS (Images, Photos, Videos)

03 // KEY OUTCOMES

  • Splitting a string into a word array, a building block reused in every parsing project
  • First contact with memory leaks and buffer overruns

04 // SOURCE TREE

READING SOURCE…