void ft_putstr(char *str)
unsigned char res; int i; res = 0; i = 0; while (i < 8) exam 01 piscine 42 exclusive
If you allocate memory with malloc and forget to free it, even if the output is correct, the exam grades you as a failure for that exercise. Leaks are considered crashes. This forces Piscine students to rigorously pair free() with every malloc() from day one. void ft_putstr(char *str) unsigned char res; int i;
Your function must be robust. For ft_putstr , if str is NULL , the official 42 expectation is (it may crash). However, for a beginner exam, do this: Your function must be robust
To help tailer the perfect study plan before your next attempt, let me know:
[Your Code] ──► [Compiles?] ──► NO ──► Score: 0 │ YES ▼ [Forbidden Functions Used?] ──► YES ──► Score: 0 │ NO ▼ [Matches Expected Output?] ──► NO ──► Score: 0 │ YES ▼ [Score: 100% ── Progress to Next Level]