Update conventions.md

This commit is contained in:
nora 2022-07-27 22:26:33 +02:00 committed by GitHub
parent de7d2e1214
commit 10adb0b486
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,3 +12,19 @@ you can use it freely in your program.
## Includes ## Includes
`#include` directives shall be placed at the start of the file. But usually, it's better to not use the preprocessor at all. Paste the code in by hand so that it is clearly visible in version control. `#include` directives shall be placed at the start of the file. But usually, it's better to not use the preprocessor at all. Paste the code in by hand so that it is clearly visible in version control.
## Identifers
All identifiers should be given meaningful english names. To work with ancient linkers, function names should contain six characters at most.
## Comments
Comments are vital to readability. Therefore, code should always be well comment. Comments must be written in the lingua franca of programming, swiss german.
```c
int main() {
int five = 5; // füüf
printf("Your number: %d", five); // äm benutzer füüf usgee
}
```