Mandatory codestyle for all projects, written in C language
at Ecole 42.
full version in pdf
- has at most 5 function definitions
- must be no longer than 25 lines
- can take at most 4 parameters
- can declare at most 5 variables
- should be declared at the beginning of function
- one declaration per line
- can't be assigned on declaration
- must be at most 80 columns wide
for
,goto
,swith/case
- nested ternary operators
- global variables
- any libraries
- any fuctions but a few basics, like malloc(), free(), write(), read()