Skip to content

gerus66/norme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Norminette code style

Mandatory codestyle for all projects, written in C language at Ecole 42.
full version in pdf

Each *.c file

  • has at most 5 function definitions

Each function

  • must be no longer than 25 lines
  • can take at most 4 parameters
  • can declare at most 5 variables

Each variable

  • should be declared at the beginning of function
  • one declaration per line
  • can't be assigned on declaration

Each line

  • must be at most 80 columns wide

Forbidden

  • for, goto, swith/case
  • nested ternary operators
  • global variables
  • any libraries
  • any fuctions but a few basics, like malloc(), free(), write(), read()

About

C language codestyle for Ecole 42 projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published