Solutions for the Piscine Reloaded module at 42 School — a set of exercises revisiting fundamentals from the original C Piscine: shell commands, basic C functions, recursion, memory, and linked lists.
| Exercise | Description |
|---|---|
ex00 |
Create a tar archive |
ex01 |
z — display z followed by a newline |
ex02 |
clean — Makefile with a clean rule |
ex03 |
find_sh.sh — list all .sh files in the current directory tree |
ex04 |
MAC.sh — display MAC addresses of network interfaces |
ex05 |
Create a file with special characters in its name |
ex06 |
ft_print_alphabet — print a to z |
ex07 |
ft_print_numbers — print 0 to 9 |
ex08 |
ft_is_negative — print N or P |
ex09 |
ft_ft — set a pointer value |
ex10 |
ft_swap — swap two integers |
ex11 |
ft_div_mod — divide and return remainder |
ex12 |
ft_iterative_factorial |
ex13 |
ft_recursive_factorial |
ex14 |
ft_sqrt — integer square root |
ex15 |
ft_putstr — write a string to stdout |
ex16 |
ft_strlen |
ex17 |
ft_strcmp |
ex18 |
ft_print_params — print argv one per line |
ex19 |
ft_sort_params — print argv sorted lexicographically |
ex20 |
ft_strdup |
ex21 |
ft_range — return an allocated int array [min, max) |
ex22 |
ft_abs — absolute value macro |
ex23 |
ft_point — struct with x and y coordinates |
ex24 |
Makefile with all, clean, fclean, re rules |
Each exercise is self-contained in its own directory:
ex00/ ex01/ ex02/ ... ex24/
gcc,make(for C exercises and ex24)bash(for shell exercises ex03–ex05)