This repository presents Exams of the 42 programming school. I have presented the code as a sample for solving each of the functions. If you find any bug, write to "issues". Subjects are in the folder of each exercises, along with a solution.
Original link to the subjects repository: click
Title | Description | Allowed functions | level of difficulty |
---|---|---|---|
ft_printf | Write a function named ft_printf that will mimic the real printf |
malloc, free, write, va_start, va_arg, va_copy, va_end | ⭐⭐⭐⭐ |
get_next_line | Write a function that will store, in the parameter a file descriptor, and will return the line read from it | read, free, malloc | ⭐⭐⭐ |
Original link to the subjects repository: click
Title | Description | Allowed functions | level of difficulty |
---|---|---|---|
microshell | Write a program that will behave like executing a shell command | malloc, free, write, close, fork, waitpid, signal, kill, exit, chdir, execve, dup, dup2, pipe, strcmp, strncmp | ⭐⭐⭐⭐ |
To check for leaked file descriptors, use the command lsof -c microshell
. Pay attention to the section PIPE
Original link to the subjects repository: click
Title | Description | Allowed functions | level of difficulty |
---|---|---|---|
cpp_module_02 | Polymorphism | All | ⭐⭐⭐ |
cpp_module_01 | Inheritance | All | ⭐⭐ |
cpp_module_00 | Encapsulation | All | ⭐ |