top of page

Exam Rank: 03 42

The exam system at 42 (often called "Moulinette" for projects, though exams have a specific trainer) is unforgiving.

At École 42, Exam Rank 03 is often considered the first "real" filtering exam for new students (following the Piscine exams).

Input file circle.op:

. 10 10
c 5.0 5.0 4.0 *
C 5.0 5.0 2.0 +

Expected output:

..........
..........
....*....
...***...
..*+++*..
..*+++*..
..*+++*..
...***...
....*....
..........

You have a 50/50 chance of getting either ft_printf or get_next_line. You must pass this with 100% (all mandatory parts working) to unlock the second exercise. Exam Rank 03 42

If you don't get ft_printf, you will likely get get_next_line. This function reads a line from a file descriptor.

The Prototype:

char *get_next_line(int fd);

Key Concepts:

Logic Structure:

  • Extract Line:
  • Update Remainder:
  • Common Pitfalls:


    Reads an operation file and draws rectangles (filled or empty) on a background. The exam system at 42 (often called "Moulinette"

    bottom of page