This repository contains my exercises and projects from the 42 Piscine.
The 42 Piscine is an intensive, month-long coding bootcamp that covers the basics of programming in C, shell scripting, and Unix systems. It helps prepare students for the full 42 cursus.
The Norminette is the tool used at 42 to check the conformity of your C code to the 42 coding style. Before submitting any project, your code should pass the Norminette without any errors.
You can run Norminette on a file or an entire directory:
norminette <file.c>
norminette <directory>
The tool checks:
- Line length (maximum of 80 characters)
- Function length (maximum of 25 lines)
- File length (maximum of 5 functions)
- Naming conventions for variables, functions, and files
- Proper indentation and code structure
At 42 Piscine, all C files must be compiled with specific flags to ensure error-free code and proper handling of warnings. The following command should be used:
cc -Wall -Wextra -Werror <file.c> -o <output>
To generate the standard header in vim, use the Stdheader
command, which creates a header with the required format for 42 projects.
- Open the file in
vim
. - Press
Esc
to enter command mode. - Type
:Stdheader
and press Enter.
- Name: Yevhenii Kiprenko
- Email: [email protected]